Results 1 to 6 of 6

Thread: mouse

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Posts
    148

    Exclamation

    i know how to mouve the mouse with vb but how do you click the mouse in vb please if you can email me at [email protected]

  2. #2
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Thumbs up mouse down

    try the mouse down procedure.
    Matt

  3. #3
    Guest
    MouseDown will detect when the mouse is down. Placing your code in the click event will trigger when the mouse is clicked.

  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    Did I read the question wrong? It sounded like he accually wanted to fire off a mouse event, not react to one.
    "People who think they know everything are a great annoyance to those of us who do."

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Posts
    148
    yes i accually want to fire off a mouse event, not react to one

  6. #6
    Guest
    Code:
    Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
    
    Public Const MOUSEEVENTF_LEFTDOWN = &H2
    Public Const MOUSEEVENTF_LEFTUP = &H4
    
    Call mouse_event(MOUSEEVENTF_LEFTDOWN Or MOUSEEVENTF_LEFTUP, 0&, 0&, 0&, 0&)
    Hope that's what you meant.

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