Results 1 to 5 of 5

Thread: mouse manipulation

  1. #1

    Thread Starter
    Junior Member inxil's Avatar
    Join Date
    Mar 2000
    Posts
    23
    Ok, i'm looking for a way to send a mouse click to either some X,Y coord, or to the place where the mouse is.
    Example: say there's a little box at 192,303 (X,Y) and i want to click on it. I could move the mouse there, and then send a click to that place? or just send a click there directly (i think the first is more likely possible). I know how to move the mouse, and even you just have an idea, pls reply. I've been trying to do this for a long while now.

    -----
    Inxil

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    Hello,
    I believe you can use an API call that will help you out, but I beleive it won't send mouse clicks outside of your program.

    API Call,
    Code:
    Private 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)
    Mouse Button Constants,
    Code:
    Private Const VK_LBUTTON = &H1
    Private Const VK_RBUTTON = &H2
    Private Const VK_MBUTTON = &H4
    Hope it helps,
    Desire

  3. #3

    Thread Starter
    Junior Member inxil's Avatar
    Join Date
    Mar 2000
    Posts
    23

    uhm

    yeah, that doesn't work outside of your own program =( i need to send it anywhere on the screen.

  4. #4
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73

    Sorry

    Hello,
    I can't get it to send mouse clicks outside of the form without my program going crazy and clicking everything under the mouse.

    Hope you solve it soon,
    Desire.

  5. #5
    New Member
    Join Date
    Mar 2000
    Posts
    13

    Yes mouse_events click anywhere

    Check out this link.

    http://www.vbapi.com/ref/m/mouse_event.html

    /Tote

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