仼慜傊 師傊仺
婡擻暿俻仌俙 幙栤斣崋弴俻仌俙 栚師

# [HMM0058A]

## 仠setactivehidemaru 暥偺堷悢

  setactivehidemaru暥傪巊偭偰曇廤僂傿儞僪僂傪愗傝懼偊偨偄偺偱偡偑丄巊偄曽偑傛偔暘偐傝傑偣傫丅

  setactivehidemaru暥偵偼廏娵僄僨傿僞僂傿儞僪僂偺乽斣崋乿偐乽僂傿儞僪僂僴儞僪儖乿傪巜掕偟傑偡丅

  [夝愢]

    1. 僂傿儞僪僂斣崋

       廏娵僄僨傿僞僂傿儞僪僂偺乽斣崋乿偲偼丄廏娵僄僨傿僞偺僂傿儞僪僂傪夋柺庤慜偐傜弴偵悢偊偨斣崋偵側偭偰偄傑偡(堦斣庤慜偑0 偱偡)丅僼傽僀儖柤偐傜僂傿儞僪僂斣崋傪庢摼偡傞偵偼 findhidemaru()娭悢傪巊偄傑偡丅

           //------- 僒儞僾儖儅僋儘1 -------//
           // "c:\\hidemaru\\install.txt" 偺僂傿儞僪僂斣崋傪庢摼偡傞
           $file    = "c:\\hidemaru\\install.txt";
           #h_order = findhidemaru($file);
           message $file + " 偺僂傿儞僪僂斣崋偼 " + str(#h_order) + " 偱偡丅";
           if( #h_order != -1 ) setactivehidemaru #h_order; //愗傝懼偊
           endmacro;
           // ---------------------------- //

       仸 僼傽僀儖偑奐偐傟偰偄側偄応崌偼丄僂傿儞僪僂斣崋偼 -1 偵側傝傑偡丅

    2. 僂傿儞僪僂僴儞僪儖

       1.偱愢柧偟偨僂傿儞僪僂斣崋偼丄setactivehidemaru傪孞傝曉偟巊梡偟偰僂傿儞僪僂偺愗傝懼偊傪峴偆偲曄壔偟偰偟傑偄傑偡丅偄偪偄偪findhidemaru()娭悢傪巊偭偰僂傿儞僪僂斣崋傪庢摼偟偰傕偄偄偺偱偡偑丄乽僂傿儞僪僂僴儞僪儖乿傪庢摼偟偰偍偗偽(僂傿儞僪僂傪暵偠側偄尷傝)偦偺僂傿儞僪僂傪堦敪偱巜掕偱偒傑偡丅

           //------- 僒儞僾儖儅僋儘2 -------//
           // "c:\\hidemaru\\install.txt" 偺僂傿儞僪僂僴儞僪儖傪庢摼偡傞
           $file  = "c:\\hidemaru\\install.txt";
           #h_wnd = hidemaruhandle(findhidemaru($file));
           message $file + " 偺僂傿儞僪僂僴儞僪儖偼 " + str(#h_wnd) + " 偱偡丅";
           if( #h_wnd != 0 ) setactivehidemaru #h_wnd; //愗傝懼偊
           endmacro;
           // ---------------------------- //

       仸 hidemaruhandle()娭悢偺堷悢偵偼僴儞僪儖傪庢摼偟偨偄僂傿儞僪僂偺僂傿儞僪僂斣崋傪巜掕偟傑偡丅僂傿儞僪僂偑懚嵼偟側偄応崌(僂傿儞僪僂斣崋偑-1 偺応崌)丄hidemaruhandle() 娭悢偼 0 傪曉偟傑偡丅

    3. findhidemaru() 娭悢傪巊偆応崌偺拲堄揰

       findhidemaru() 娭悢偺堷悢偵傾僋僥傿僽僂傿儞僪僂(僂傿儞僪僂斣崋0)偺僼傽僀儖柤傪巜掕偟偨応崌傕 (僂傿儞僪僂偑懚嵼偟側偄帪偲摨條偵) -1傪曉偡偨傔丄忋婰偺僒儞僾儖儅僋儘傪 c:\hidemaru\install.txt忋偱幚峴偡傞偲乽c:\hidemaru\install.txt 偺僂傿儞僪僂斣崋偼 -1 (僂傿儞僪僂僴儞僪儖偼 0)偱偡丅乿偲塕(^^;傪尵傢傟偰偟傑偄傑偡丅 (findhidemaru() 娭悢偼帺暘帺恎傪尒偮偗傞帠偼偱偒側偄)

       椺偊偽傾僋僥傿僽僂傿儞僪僂偺僂傿儞僪僂僴儞僪儖傪庢摼偟偨偄応崌偼丄

           #hwnd_act = hidemaruhandle(findhidemaru(filename));

       仸 filename 偵偼尰嵼偺僂傿儞僪僂偺僼傽僀儖柤偑擖傞(乽仠乽僉乕儚乕僪乿偲偼丠乿傪嶲徠偟偰壓偝偄)丅

       偱偼側偔

           #hwnd_act = hidemaruhandle( 0 );

       偲巜掕偟側偗傟偽惓偟偔摦嶌偟傑偣傫丅

    4. setactivehidemaru暥偺戞2堷悢偺巊偄曽

       俀斣栚偺僷儔儊乕僞傪巜掕偡傞偲丄帺暘帺恎偺僂傿儞僪僂偺廳側傝埵抲傪挷愡偱偒傑偡丅僂傿儞僪僂斣崋偐僴儞僪儖傪傪巜掕偡傞偲丄巜掕偟偨僂傿儞僪僂偺壓偵堏摦偟傑偡丅

       - -1傪巜掕偡傞偲丄堦斣壓偵堏摦偟傑偡丅

       俀斣栚偺僷儔儊乕僞偼徣棯壜擻偱偡丅

       弶婜忬懺丅傾儖僼傽儀僢僩(a乣d)偑僂傿儞僪僂僴儞僪儖(僂傿儞僪僂幆暿斣崋)丄悢帤偑僂傿儞僪僂弴斣偱偡丅

           劕劒劒劒劒劒劒劒劖
           劔d             劔
           劙劒劒劒劒劒劒劒劜
           劔3 劕劒劒劒劒劒劤劒劖
           劔  劔c             劔
           劔  劙劒劒劒劒劒劒劒劜
           劔  劔2 劕劒劒劒劒劒劤劒劖
           劔  劔  劔b             劔
           劘劒劜  劙劒劒劒劒劒劒劒劜
               劔  劔1 劕劒劒劒劒劒劤劒劖
               劔  劔  劔a             劔
               劘劒劜  劙劒劒劒劒劒劒劒劜
                   劔  劔0             劔
                   劘劒劜              劔
                       劔              劔
                       劘劒劒劒劒劒劒劒劗

       乽師偺廏娵僄僨傿僞乿偵愗傝懼偊傞偨傔丄俀斣栚偺僂傿儞僪僂傪傾僋僥傿僽偵偡傞丅(setactivehidemaru 1;) 扨弮偵俀斣栚偺僂傿儞僪僂(b)偑愭摢偵堏摦偡傞偩偗側偺偱丄(a)偲(b)偑擖傟懼傢傞偩偗丅嵞搙俀斣栚偺僂傿儞僪僂傪傾僋僥傿僽偵偟偰傕丄(a)偲(b)偑擖傟懼傢傞偩偗偱丄(c)偵偼堏摦偟側偄丅

       setactivehidemaru 1;幚峴帪偺摦嶌
           劕劒劒劒劒劒劒劒劖
           劔d             劔
           劙劒劒劒劒劒劒劒劜
           劔3 劕劒劒劒劒劒劤劒劖
           劔  劔c             劔
           劔  劙劒劒劒劒劒劒劒劜
           劔  劔2 劕劒劒劒劒劒劤劒劖
           劔  劔  劔b             劔
           劘劒劜  劙劒劒劒劒劒劒劒劜
               劔  劔0             劙劒劖
               劔  劔              劔 a劔
               劘劒劜              劙劒劜
                   劔              劔 1劔
                   劘劒劚劒劒劒劒劒劗  劔
                       劔              劔
                       劘劒劒劒劒劒劒劒劗
       | 仼仺 |
           劕劒劒劒劒劒劒劒劖
           劔d             劔
           劙劒劒劒劒劒劒劒劜
           劔3 劕劒劒劒劒劒劤劒劖
           劔  劔c             劔
           劔  劙劒劒劒劒劒劒劒劜
           劔  劔2 劕劒劒劒劒劒劤劒劖
           劔  劔  劔b             劔
           劘劒劜  劙劒劒劒劒劒劒劒劜
               劔  劔1 劕劒劒劒劒劒劤劒劖
               劔  劔  劔a             劔
               劘劒劜  劙劒劒劒劒劒劒劒劜
                   劔  劔0             劔
                   劘劒劜              劔
                       劔              劔
                       劘劒劒劒劒劒劒劒劗

       乽師偺廏娵僄僨傿僞乿偱弴師僂傿儞僪僂傪愗傝懼偊傞偵偼丄愭摢偺僂傿儞僪僂傪嵟屻偵堏摦偡傞昁梫偑偁傝傑偡丅戞擇堷悢傪巜掕偟丄愭摢偺僂傿儞僪僂傪嵟屻偵堏摦偝偣傞丅

       setactivehidemaru 1,-1;幚峴帪偺摦嶌
           劕劒劒劒劒劒劒劒劖
           劔d             劔
           劙劒劒劒劒劒劒劒劜
           劔2 劕劒劒劒劒劒劤劒劖
           劔  劔c             劔
           劔  劙劒劒劒劒劒劒劒劜
           劔  劔1             劔
           劔  劔  劕劒劒劒劒劒劤劒劖
           劘劒劜  劔b             劔
               劔  劙劒劒劒劒劒劒劒劜
               劔  劔0             劙劒劖
               劘劒劜              劔 a劔
                   劔              劙劒劜
                   劔              劔 3劔
                   劔              劔  劔
                   劘劒劚劒劒劒劒劒劗  劔
                       劔              劔
                       劔              劔
                       劘劒劒劒劒劒劒劒劗
       | 仺 |
           劕劒劒劒劒劒劒劒劖
           劔d             劔
           劙劒劒劒劒劒劒劒劜
           劔1 劕劒劒劒劒劒劤劒劖
           劔  劔c             劔
           劔  劙劒劒劒劒劒劒劒劜
           劔  劔0             劔
           劔  劔              劙劒劖
           劘劒劜              劔 b劔
               劔              劙劒劜
               劔              劙劒劤劒劖
               劘劒劚劒劚劒劒劒劗     a劔
                   劔3 劙劒劒劒劒劒劒劒劜
                   劔  劔             2劔
                   劔  劔              劔
                   劘劒劜              劔
                       劔              劔
                       劔              劔
                       劘劒劒劒劒劒劒劒劗
       | 仺 |
           劕劒劒劒劒劒劒劒劖
           劔d             劔
           劙劒劒劒劒劒劒劒劜
           劔0             劙劒劖
           劔              劔 c劔
           劔              劙劒劜
           劔              劔 3劔
           劔              劙劒劤劒劖
           劘劒劚劒劚劒劒劒劗     b劔
               劔  劙劒劒劒劒劒劒劒劜
               劔  劔2 劕劒劒劒劒劒劤劒劖
               劘劒劜  劔             a劔
                   劔  劙劒劒劒劒劒劒劒劜
                   劔  劔             1劔
                   劔  劔              劔
                   劘劒劜              劔
                       劔              劔
                       劔              劔
                       劘劒劒劒劒劒劒劒劗

仼慜傊 師傊仺
婡擻暿俻仌俙 幙栤斣崋弴俻仌俙 栚師