
-----------------------------------
ecookman
Sat Nov 21, 2009 1:07 pm

How to I code a click from a usb mouse.
-----------------------------------
My friend and are trying to make a auto clicker, but have no clue how to program in a click, sending keys is easy, but is there a function to "send click"?

(p.s. the program is for games. have the auto clicker running so when you press a key, it will activate the clicker and make semi auto weapons to full auto lol)

-----------------------------------
Insectoid
Sat Nov 21, 2009 2:44 pm

RE:How to I code a click from a usb mouse.
-----------------------------------
In Java you'd use to Robot class. Look for something like it in VB.

-----------------------------------
Brightguy
Sat Nov 21, 2009 6:51 pm

Re: How to I code a click from a usb mouse.
-----------------------------------
There's a [url=http://msdn.microsoft.com/en-us/library/ms646310%28VS.85%29.aspx]SendInput Win32 function, or see [url=http://compsci.ca/v3/viewtopic.php?t=10310]this old topic.

-----------------------------------
nosleepdemon
Sun Nov 22, 2009 12:01 am

Re: How to I code a click from a usb mouse.
-----------------------------------
This uses the same call as that topic (SetCursorPos) but also shows how to use a few others that you'll need to work with. Its basically an unfinished autoclicker with timers and it can activate on a button press. I was using it for a few games. A lot of the stuff on the form doesn't do much since I didn't finish it, but the code should be useful.

-----------------------------------
ecookman
Sun Nov 22, 2009 1:49 pm

RE:How to I code a click from a usb mouse.
-----------------------------------
ooh cool thanks nosleepdemon
