how to have mouse clicks in different windows (noob)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
yumi424

how to have mouse clicks in different windows (noob)

21 Feb 2018, 12:42

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.
MaxAstro
Posts: 557
Joined: 05 Oct 2016, 13:00

Re: how to have mouse clicks in different windows (noob)

21 Feb 2018, 17:00

Code: Select all

CoordMode
ControlClick
Check the documentation for those two items; either of them should be able to solve your problem.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, NinjoOnline and 299 guests