-
I want to create a VB program that runs in the background and controls the position of the mouse and sends left / right / single / double click messages to windows. (basically, a VB Mouse Driver) I know that you can SET the mouse position in VB, but before I get started, is it possible to SEND Click events to Windows? (as apposed to receiving them from VBforms, etc.) If not possible directly from VB, how can I create a mouse driver that I can control from my VB application?
-
You need to use the Mouse_Event or SendInput Function. Check out the VBAPI site for info on those API Calls. It gives the declarations and example code.
http://www.vbapi.com/ref/m/mouse_event.html
Hope this helps.