Move mouse with code
Visual Basic
4
Posts
3
Posters
0
Views
1
Watching
-
I'm trying to move the mouse over a button with code but I can't. I found this property "Control.MousePosition" but I can't do it. Someone can help me? Thanks
-
I'm trying to move the mouse over a button with code but I can't. I found this property "Control.MousePosition" but I can't do it. Someone can help me? Thanks
use the following API:
Public Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x As Long, ByVal y As Long) As Long
-
use the following API:
Public Declare Function SetCursorPos Lib "user32" Alias "SetCursorPos" (ByVal x As Long, ByVal y As Long) As Long
Thanks a lot, it works well!!
-
Thanks a lot, it works well!!