Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
i'm making a program but I really need a virtual mouse.
Can somebody give me a code for a virtual mouse? ( visual basic)

greetz,
thibaut
Posted
Comments
OriginalGriff 28-Jun-11 5:34am    
Are we talking

if near cheese
then squeak
endif

or what?
Use the "Improve question" widget to edit your question and provide better information.
S Houghtelin 28-Jun-11 8:04am    
I'd 5 this if I could. I think this mouse eats greetz :)

Why do you need virtual mouse to program?
Anyways, Windows already has mousekeys.

Windows MouseKeys
http://windows.microsoft.com/en-US/windows-xp/help/turn-on-mousekeys[^]
http://en.wikipedia.org/wiki/Mouse_keys[^]

Free virtual mouse
http://www.brothersoft.com/virtual-mouse-8797.html[^]
 
Share this answer
 
How to: Simulate Mouse and Keyboard Events in Code

http://msdn.microsoft.com/en-us/library/ms171548.aspx[^]
 
Share this answer
 
I checked up a "Virtual Mouth" in the store where I buy most of my computer parts. It's not in stock :-).

It's hard to understand what do you mean by that. If you need to simulate mouse input, the most robust way it to P/Invoke the Windows API SendInput, see http://msdn.microsoft.com/en-us/library/ms646310(v=vs.85).aspx[^].

I hope you know how to P/Invoke things. The case of SendInput is not tricky at all but needs some writing.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900