I want to create a script that allows me to do some leveling in a game until a certain windows pops up, unfortunately I don't really understand the whole imagesearch mechanic and some example scripts I tried to use didn't work for me (I use 2 monitors)
So my current idea for the code is:
Plays on its own for 1 minute -> Searches for certain window -> If window is there -> Click the OK button and do another set of commands -> loop
Code: Select all
Ctrl::
loop
{
Run, %A_AHKPath% "%A_ScriptDir%\Auto.ahk"
if imagesearch successful
{
Run, %A_AHKPath% "%A_ScriptDir%\Char Creation.ahk"
}
}
return
#p::Pause,Toggle
Spoiler
So basically I got everything down but the image tracking thing. Thanks for the help!