XButton1::
SetTimer,label0,0,0
Return
label0:
ImageSearch, X, Y, 0,0, 1920, 1080, H:Desktop逆天.png
If(ErrorLevel=0)
{
ToolTip, “逆天开始”
sleep 50
Send ~
sleep 50
send e
}
ImageSearch, X, Y, 945,934,979,958, H:Desktopdujia.png
;PixelSearch, X, Y, 418 836, 418, 836, 0x395F9E, 7, RGB
If (ErrorLevel)
label3()
Else
label1()
Return
XButton1 up::
SetTimer label0,Off
Return
label1()
{
ToolTip “找到了”
SendInput r
}
label3()
{
ToolTip “没找到”
SendInput e
}
问题:
执行过程中进入label1()显示“找到了”,有时还是会执行label3()的sendinput e