I have a directory full of programs I want to run to completion. However, they all require someone to press "Ok" a few times. However, when I try to script it, the script finishes the first window fine, but then picks a random window and executes a script that now means nothing. :S
Here's the function I've got:
Code:
#i::
MsgBox Start!
Sleep 2000
done=1
CoordMode Mouse, Relative
SetTitleMatchMode, 2
loop
{
IfWinExist Supreme World
{
WinActivateBottom "Supreme World:"
Click 366, 369
Click 353, 369
sleep 1000
Click 375, 365
}
else
{
MsgBox "Done a loop!"
break
}
}
return
When I run it, it finishes the first window (which I started with it in focus), but then goes to Firefox and clicks repetedly. However, it goes to the proper window when I press Win-R. Once it's done all of the windows it's supposed to, I get the "Done a loop" message.