Making VB6 Program Click Mouse For Me
Author |
Message |
Shaun Dreclin
|
Posted: Tue Dec 12, 2006 9:59 pm Post subject: Making VB6 Program Click Mouse For Me |
|
|
Alright well there are a lot of tedious things I do online that involve a lot of repetitive mouse clicks. So I figure, why not write a program to do it for me?
These are the basic things im looking for:
-Ability to move mouse
-Ability to click mouse (right or left)
-Ability to record mouse clicks (location, and left/right clicked)
Also, it has to work even when its not the actual program being clicked.
I know it might be a lot to ask, but I have nowhere else to turn
Thanks in advance <3 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Brightguy
![](http://compsci.ca/v3/uploads/user_avatars/527435178485ad4c287538.gif)
|
Posted: Wed Jan 10, 2007 1:57 am Post subject: Re: Making VB6 Program Click Mouse For Me |
|
|
Try the following WinAPI functions:
To move the mouse: SetCursorPos.
To click the mouse: mouse_event.
To determine when the mouse has been clicked: GetKeyState. (You can use the VB key constants vbKeyLButton, vbKeyRButton and vbKeyMButton to determine mouse state.) |
|
|
|
|
![](images/spacer.gif) |
|
|