マウス操作のためのウインドウに追加する

マウスのウインドウで。その6

「追加するランチャー」と同じの。その3

saveOneAreaGui76.trr
exp76_saveAreaNum = %B_itemArg1%
exp76_saveControl = exp76_area%exp76_saveAreaNum%
exp76_saveType := %exp76_saveControl%_type
if(exp76_saveType != "" ){
    exp76_saveScript := %exp76_saveControl%_script
    exp76_saveText := %exp76_saveControl%_text
    exp76_saveImg := %exp76_saveControl%_img
    IniWrite, %exp76_saveScript%, %exp76_iniFile%, %exp76_saveControl%, script
    IniWrite, %exp76_saveType%, %exp76_iniFile%, %exp76_saveControl%, type
    IniWrite, %exp76_saveText%, %exp76_iniFile%, %exp76_saveControl%, text
    IniWrite, %exp76_saveImg%, %exp76_iniFile%, %exp76_saveControl%, img
}
%--
saveAllAreaGui76.trr
; ファイルは一度削除する
IfExist, %exp76_iniFile%
{
    FileDelete, %exp76_iniFile%
}
saveOneAreaGui76 1
saveOneAreaGui76 2
saveOneAreaGui76 3
saveOneAreaGui76 4
saveOneAreaGui76 5
saveOneAreaGui76 6
saveOneAreaGui76 7
saveOneAreaGui76 8
saveOneAreaGui76 9
saveOneAreaGui76 10
saveOneAreaGui76 11
saveOneAreaGui76 12
saveOneAreaGui76 13
saveOneAreaGui76 14
saveOneAreaGui76 15
saveOneAreaGui76 16
saveOneAreaGui76 17
saveOneAreaGui76 18
saveOneAreaGui76 19
saveOneAreaGui76 20
saveOneAreaGui76 21
saveOneAreaGui76 22
saveOneAreaGui76 23
saveOneAreaGui76 24
%--
loadOneAreaGui76.trr
exp76_saveAreaNum = %B_itemArg1%
exp76_saveControl = exp76_area%exp76_saveAreaNum%
IniRead, exp76_saveType, %exp76_iniFile%, %exp76_saveControl%, type , %A_Space%
exp76_saveType := Trim(exp76_saveType)
if(exp76_saveType == ""){
    return
}
IniRead, exp76_saveScript, %exp76_iniFile%, %exp76_saveControl%, script , %A_Space%
IniRead, exp76_saveText, %exp76_iniFile%, %exp76_saveControl%, text , %A_Space%
IniRead, exp76_saveImg, %exp76_iniFile%, %exp76_saveControl%, img , %A_Space%

exp76_tmpHeightCount := exp76_count // exp76_widthNumber
exp76_tmpWidthCount := Mod(exp76_count, exp76_widthNumber)
exp76_tmpPosX := exp76_tmpWidthCount * exp76_width
exp76_tmpPosY := exp76_tmpHeightCount * exp76_height

exp76_count++
if(exp76_count >= exp76_many){
    F_tmpOutput( "これ以上は追加できない" )
    return
}

exp76_tmpControlVar = exp76_area%exp76_count%

%exp76_tmpControlVar%_type = %exp76_saveType%
%exp76_tmpControlVar%_text = %exp76_saveText%

if( exp76_saveType == 3 ){
    %exp76_tmpControlVar%_img = %exp76_saveImg%
    exp76_tmpIconPath = %exp76_saveImg%
    ; 拡張子が、txt、画像ファイル、lnk なら、SHELL32.dll のファイルを。
    myClickGui76_getIconAddGui76

    exp76_tmpOption = %exp76_tmpIconOption% X%exp76_tmpPosX% Y%exp76_tmpPosY% w%exp76_width% h%exp76_height% v%exp76_tmpControlVar% gG_subroutine76
    exp76_imgExistFlag := F_GuiAddPictureFileExist(76, exp76_tmpIconPath, exp76_tmpOption)
    if( exp76_imgExistFlag == False ){
        Gui, 76:Add, Button, %exp76_tmpOption%,  %exp76_saveText%
    }
    %exp76_tmpControlVar%_script := exp76_saveScript
    ; 初期化しておく
    exp76_tmpIconOption =
    return
}
exp76_tmpOption = X%exp76_tmpPosX% Y%exp76_tmpPosY% w%exp76_width% h%exp76_height% v%exp76_tmpControlVar% gG_subroutine76
if( exp76_saveType == 2 ){
    %exp76_tmpControlVar%_img = %exp76_saveImg%
    exp76_imgExistFlag := F_GuiAddPictureFileExist(76, exp76_saveImg, exp76_tmpOption)
    if( exp76_imgExistFlag == False ){
        Gui, 76:Add, Button, %exp76_tmpOption%,  %exp76_saveText%
    }
} else if( exp76_saveType == 4 ){
    Gui, 76:Add, Text, %exp76_tmpOption% Center Border,  %exp76_saveText%
} else {
    Gui, 76:Add, Button, %exp76_tmpOption%,  %exp76_saveText%
}
%exp76_tmpControlVar%_script := exp76_saveScript
%--
loadAllAreaGui76.trr
if(exp76_load >= 2){
    F_tmpOutput( "すでに一度ロードしているので中止する" )
    return
}
exp76_load++
IfNotExist, %exp76_iniFile%
{
    return
}
loadOneAreaGui76 1
loadOneAreaGui76 2
loadOneAreaGui76 3
loadOneAreaGui76 4
loadOneAreaGui76 5
loadOneAreaGui76 6
loadOneAreaGui76 7
loadOneAreaGui76 8
loadOneAreaGui76 9
loadOneAreaGui76 10
loadOneAreaGui76 11
loadOneAreaGui76 12
loadOneAreaGui76 13
loadOneAreaGui76 14
loadOneAreaGui76 15
loadOneAreaGui76 16
loadOneAreaGui76 17
loadOneAreaGui76 18
loadOneAreaGui76 19
loadOneAreaGui76 20
loadOneAreaGui76 21
loadOneAreaGui76 22
loadOneAreaGui76 23
loadOneAreaGui76 24
%--
1_clickGui76All.trr
start1_globalGui76_1
start1_guiGlobalGui76_1
start1_guiGlobalGui76_2
start1_guiGlobalGui76_3
start1_guiGlobalGui76_4
start1_guiGlobalGui76_5
start2_makeGui76
loadAllAreaGui76
%--