FindText二值化以后 的Text的值怎样才能分别赋给选项的
#SingleInstance Force#NoEnv
#Include <FindText>
WinActivate ahk_class MapleStoryClass
WinGetPos, pX, pY, pW, pH, ahk_class MapleStoryClass
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
Gui Font, s9, Segoe UI
Gui Font, s10
Gui Add, Text, x60 y30 w38 h25 +0x200 , 自选:
Gui Font, s9, Segoe UI
Gui Add, ComboBox, x114 y30 w120 v自选, 物理攻击|魔法攻击|暴击率|伤害|移速
Gui Font, s15 cRed
Gui Add, Text, x15 y93 w85 h31 +0x200 , F1:开始
Gui Font, s9, Segoe UI
Gui Font, s15 cRed
Gui Add, Text, x126 y93 w85 h31 +0x200 , F5:刷新
Gui Font, s9, Segoe UI
Gui Font, s15 cRed
Gui Add, Text, x238 y93 w85 h31 +0x200 , 空格暂停
Gui Show, w330 h151, 自选洗怪怪
Return
Text:=”|<物理攻击>*142$90.qzw1zTyzxzzzzzzqz5hzTyzxzzzzzzK1hh1TU3xzzzrvh1Jg1r1yz03zvbnJLJhhqvyzxvrvrnHrJ5hpP01xvzUrfJmpg1rPyzxvzvrPW6hjjrLivvvzvr1mphg1ljivvvzzrverRbjDLivrvrzXlhqxDjyvU3jvzzzzzpns1xxzvT7zzzzzU”
Text.=”|<魔法攻击>*145$90.zTjTzTyzxzzzzzzU1rTzTyzxzzzzzzhrzT1TU3xzzzrvhUVs3r1yz03zvbnJZJTTqvyzxvrvrnHc3jTpP01xvzUrfJfPk1rPyzxvzvrPWc3yzrLivvvzvr1mevqrljivvvzzrvec3hvDLivrvrzXlhhJM1yvU3jvzzzzzHVzxxxzvT7zzzzzU”
;这是不是要把Text的值分别对应赋给这里面Gui Add, ComboBox, x114 y30 w120 v自选, 物理攻击|魔法攻击|暴击率|伤害|移速
F1::
loop{
Sleep 100
Click 708, 95 2
Sleep 100
Click 411, 132
Sleep 100
Click 733, 443
Sleep 200
GuiControlGet, 自选 ;然后在这调用选项 ?
if (ok:=FindText(X:=”wait”, Y:=1, pX, pY, pX+pW, pY+pH, 0, 0, Text))
{
break
}
Sleep 500
}
Return
Return
space::
Pause
Return
F5::
Reload
Return
Return
GuiEscape:
GuiClose:
ExitApp