Need help understanding Imagesearch for my script.

Ask gaming related questions (AHK v1.1 and older)
TheHayax3
Posts: 1
Joined: 19 Aug 2017, 09:22

Need help understanding Imagesearch for my script.

19 Aug 2017, 09:38

Hello,

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
The window I am talking about is this:
Spoiler
So basically I got everything down but the image tracking thing. Thanks for the help!

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 75 guests