I'm sure there is a simple solution to this, although me being the idiot I am, cannot figure it out. Basically, I'm trying to run a simple script that clicks buttons on my screen. However, some Co-Ordinates belong to different windows. An example of this is:
Code: Select all
click 1900, 992
Sleep 2500
click 1505,511
sleep 3000
The 1900,992 co ordinate is in one window, let's call that 'x'. The other co ordinate, 1505,511, is in another window. Call that 'y'. How would I make it so that AHK ignores windows? Right now when I try running the script, my mouse flies off screen to try and find 1505,511 on the other window, which makes my script redundant. Thank you.