|
-
Jun 17th, 2000, 10:59 AM
#1
Thread Starter
Junior Member
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.
-
Jun 17th, 2000, 11:25 AM
#2
Addicted Member
I'm not sure but i think some one answered this question before, try to search for it
-
Jun 17th, 2000, 12:43 PM
#3
Thread Starter
Junior Member
not everyone try to help all at one time :]
not all police eat doughnut's and drink coffee.. some of us like milk instead.
-
Jun 17th, 2000, 02:00 PM
#4
PowerPoster
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.
-
Jun 17th, 2000, 11:53 PM
#5
Hyperactive Member
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|