Bytales wrote:
soccer18soccer18 wrote:
if you want it to click on an inactive window you can use control click
Code:
ControlClick, x100 y150, Title of Window
you can get the x and y coordinates with window spy. and obviously you get the title of the window from the bar at the top.
and yes, you can use the mouse to click other things while it sendign the clicks to the inactive window.
hope this helps
Those X and Y coords are always relative to the windows or they are relative to the whole screen and i need to make them relative to the said window?
The title of window, is it the TITLE or the AHK class ? which are different in some apps !
ok this is what you want:
this is the windows spy thing:
>>>>>>>>>>( Window Title & Class )<<<<<<<<<<<
Post a reply - Windows Internet Explorerahk_class IEFrame
>>>>>>>>>>>>( Mouse Position )<<<<<<<<<<<<<
On Screen: 472, 295 (less often used)
In Active Window: 476, 269you want to look the things i bolded up there.
the first thing under Window Title & Class is the window title.
the second thing under Mouse Position us the mouse position in the active window, which is what you want. the first one (476) is the x and the second (269) is the y. so if you wanted it to click at the 476, 269 coordinates on the Post a reply - Windows Internet Explorer (the ahk website) this is what the code look like.
Code:
controlclick, x476 y269, Post a reply - Windows Internet Explorer
does that help?