Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Making VB6 Program Click Mouse For Me
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Shaun Dreclin




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Brightguy




PostPosted: 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.)
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: