S
Sin Jeong-hun
The term 'system-wide' just means that click is dealt in whole-screen
wide level.
Just like the real mouse pointer.
What I'd like to do is to emulate mouse move and click.
For example, the command is something like
"Move the mouse to the 300,400 of the screen and click."
I know that I can send mouse clcik message to a specific window using
WinAPI. But can't I just emulate 300,400 click of the real screen?
I thought that I might need to deal with the mouse driver?
A workaround I came up with is to find the window at that screen
location using WindowFromPoint then translate the point to that
window's cordinate then send WM_MOUSEDOWN.
But is this the only way?
Please give me a hint. Thank you.
wide level.
Just like the real mouse pointer.
What I'd like to do is to emulate mouse move and click.
For example, the command is something like
"Move the mouse to the 300,400 of the screen and click."
I know that I can send mouse clcik message to a specific window using
WinAPI. But can't I just emulate 300,400 click of the real screen?
I thought that I might need to deal with the mouse driver?
A workaround I came up with is to find the window at that screen
location using WindowFromPoint then translate the point to that
window's cordinate then send WM_MOUSEDOWN.
But is this the only way?
Please give me a hint. Thank you.