Send mouse click?

  • Thread starter Thread starter Johan Johansson
  • Start date Start date
J

Johan Johansson

I'm looking for a command like "Sendkey" but "send mouse click" (left
button)

I would appreciate if someone posted a code example, just a simple
click of the left mouse button and my day would be saved ;)

/Johan
 
Hi,

Don't know any other way then by API

First declare this:
Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As
Integer

Then adapt and insert this somewhere

If GetAsyncKeyState(1) <> 0 Then MsgBox "leftbutton"
If GetAsyncKeyState(2) <> 0 Then MsgBox "rightbutton"
Regards,
ManualMan
http://www.gamesXL.tk
 
Back
Top