-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How click to control without mouse moving? #35
Comments
There are multiple aspects here:
|
@Roemer , with winapi i can click on control without mouse. I think this lib allow make me win api calls |
You can use WinAPI with SendMessage to fake clicks but then you could miss some events like mouse enter and such. I might think to add that as well but in general using patterns is better. |
@Roemer why you think that i miss mouse enter event? |
Because this one is only fired when the mouse effectively moves over an element. |
I did some more research (again) and the SendMessage method is very unreliable (see https://blogs.msdn.microsoft.com/oldnewthing/20050530-11/?p=35513). And the SendInput method (which is the best to simulate the mouse) does not allow to "send" to other windows than the foreground window. |
I use demo code from wiki. All work, but my mouse) Its manually moving it. I think this library use winapi and its can click on button without mouse moving...
The text was updated successfully, but these errors were encountered: