- image.png (44.31 KiB) Viewed 883 times
- image.png (62.35 KiB) Viewed 883 times
- image.png (22.94 KiB) Viewed 883 times
Code: Select all
#Include, FindText.ahk ;its in the same folder
#IfWinActive, ahk_exe DragonCity.exe
z::
MouseClick, left, 534, 650
Return
A::
Text:="|<>*170$52.zz7zzzzzzzkDzzzzzzy1zzzzzzzkTzzzzzzz1zzzzzzzw7jzzzzzzk8zzzzzzz03zzzz0Ds0Tzzzw1z03zzzzsDs7zzzzzlz0zzzzzzzs7zzzzzzz0zzzzzzzs3zzzzzzz0Tzzzzzzw3zzzzzzzsTzzzzzzzrzzzzzzzy"
if (ok:=FindText(X, Y, 578-150000, 954-150000, 578+150000, 954+150000, 0, 0, Text))
{
FindText().Click(X, Y, "L")
}
else
{
MsgBox, % "Not found"
}
return
#IfWinActive
Code: Select all
Text:="|<>*170$52.zz7zzzzzzzkDzzzzzzy1zzzzzzzkTzzzzzzz1zzzzzzzw7jzzzzzzk8zzzzzzz03zzzz0Ds0Tzzzw1z03zzzzsDs7zzzzzlz0zzzzzzzs7zzzzzzz0zzzzzzzs3zzzzzzz0Tzzzzzzw3zzzzzzzsTzzzzzzzrzzzzzzzy"
while !FindText(X, Y, 578-150000, 954-150000, 578+150000, 954+150000, 0, 0, Text)
Sleep, 50
while FindText(X, Y, 578-150000, 954-150000, 578+150000, 954+150000, 0, 0, Text)
Sleep, 50
MsgBox, Image was initially found and now is no longer found.