Results 1 to 5 of 5

Thread: Mouse movement and clicking

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    20
    Is it possible for a program to move the mouse anywhere on the screen and the have the mouse click something? ex: "I want the program to set my mouse on a spot on my desktop [icon], then click on it.." I know that I would have to get the positon of the icon.
    not all police eat doughnut's and drink coffee.. some of us like milk instead.

  2. #2
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241
    I'm not sure but i think some one answered this question before, try to search for it

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Posts
    20
    not everyone try to help all at one time :]
    not all police eat doughnut's and drink coffee.. some of us like milk instead.

  4. #4
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Lightbulb API...

    You can use the [b[SetCursorPos[/b] to move the mouse arround the screen and use the SendMessage API to preform the mouse click event. But you need declare 2 more constant:
    • Const WM_LBUTTONDOWN = &H201
    • Const WM_LBUTTONUP = &H202


    With all this it should does what you need.

  5. #5
    Hyperactive Member Zaphod64831's Avatar
    Join Date
    Mar 2000
    Posts
    268
    Could you keep going Chris?
    I don't know anything about API and I think this might come in handy for a little tutorial I'm creating...
    Email: [email protected]

    Home Page: www.olemac.net/~hutch

    I'm bored, VERY bored, and I got bored with my sig. So I changed it to this.

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