Results 1 to 4 of 4

Thread: How can I use VB for Move Mouse cousor?

  1. #1

    Thread Starter
    Hyperactive Member solar115's Avatar
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    268

    Question How can I use VB for Move Mouse cousor?

    If I want to move the mouse cursor to position (x,y) on the screen with VB, How can I do that?
    ^solaris^

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918
    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.

  3. #3

    Thread Starter
    Hyperactive Member solar115's Avatar
    Join Date
    Apr 2002
    Location
    Thailand
    Posts
    268
    OK , I read it already but I'm don't clear about Moving Method.
    If it has some example only about moving method.
    ^solaris^

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. Private Declare Function SetCursorPos Lib "user32" (ByVal x As Long, _
    2.                                                     ByVal y As Long) _
    3.                                                     As Long
    4.  
    5. Private Sub Command1_Click()
    6.     Call SetCursorPos(10, 10)
    7. End Sub
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width