Computer Science Canada

Making VB6 Program Click Mouse For Me

Author:  Shaun Dreclin [ 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 Razz

Thanks in advance <3

Author:  Brightguy [ 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.)


: