I want to send clicks to the window "MTA: San Andreas ahk_class Grand theft auto San Andreas" while it's inactive.
This is what i came up with:
ControlClick, , MTA: San Andreas ahk_class Grand theft auto San Andreas,, Left, 1, x960 y732 NA
It sends a click but not at the position i want.
Please help, this drives me crazy.
Sending clicks at a specific position while window is in background
Re: Sending clicks at a specific position while window is in background
ControlClick, , MTA: San Andreas ahk_class Grand theft auto San Andreas,, Left, 1, x960 y732 NA
Because you are using the command wrong.
using x and y in the options parameter like that is saying "Click at these x y coords of the CONTROL", not of the WINDOW.
Seeing as you are trying to send to the window as a whole, not a specific control in a window, this is likely why it is not working.
Place x and y in the first param to make the coords relative to the window.
ControlClick, x960 y732, MTA: San Andreas ahk_class Grand theft auto San Andreas,, Left, 1, NA
Because you are using the command wrong.
using x and y in the options parameter like that is saying "Click at these x y coords of the CONTROL", not of the WINDOW.
Seeing as you are trying to send to the window as a whole, not a specific control in a window, this is likely why it is not working.
Place x and y in the first param to make the coords relative to the window.
ControlClick, x960 y732, MTA: San Andreas ahk_class Grand theft auto San Andreas,, Left, 1, NA
Who is online
Users browsing this forum: No registered users and 31 guests