I have this script set up to constantly spawn an enemy, click the attack button, click a couple times to go back into the overworld, wait a little bit, and then start again:
Code: Select all
Loop
{
ToolTip , "Sending Numpad"
Send, {Numpad5}
ToolTip , "Sent Numpad"
Sleep, 2500
Click, 876 800
ToolTip , "Sending Click1"
Sleep 8000
ToolTip , "Sending Click2"
Sleep 1000
ToolTip , "Sending Click3"
Click, 994 536
Sleep 2500
}
I'm a little rusty with my AHK programming so the formatting is a little shit and I'm not sure I got the syntax completely right (the tooltips were for initial debugging), it works though. I'm just wondering if instead of heavily relying on "sleep", I can set multiple images to different Boolean variables and put them in a big while loop, so instead of sleeping for eight seconds, it keeps a look out for the EXP screen, and then waits until it sees my player in the overworld, etc. I'm just not sure how AHK looks for the images if in a loop.
I guess I need a little help in getting the logic right here, and whether this is a relatively safe thing to set up in terms of not slowing down my PC.