If I want to move the mouse cursor to position (x,y) on the screen with VB, How can I do that?
^solaris^
Have a look at this thread, it may help: http://www.vbforums.com/showthread.p...hreadid=204156
Pete No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.
OK , I read it already but I'm don't clear about Moving Method. If it has some example only about moving method.
VB Code: Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, _ ByVal y As Long) _ As Long Private Sub Command1_Click() Call SetCursorPos(10, 10) End Sub
Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, _ ByVal y As Long) _ As Long Private Sub Command1_Click() Call SetCursorPos(10, 10) End Sub
Laugh, and the world laughs with you. Cry, and you just water down your vodka. Take credit, not responsibility
Forum Rules