How use User32.dll to simulate mouse click?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • alexsander_sc_br
    Forum Member
    • Sep 2004
    • 58

    How use User32.dll to simulate mouse click?

    Hi!

    Please, I know that inside the user32.dll there is a function that I use to move the mouse to a position outside my aplication. I am using:

    DLL.CallFunction ( _SystemFolder .. "\\User32.dll", "SetCursorPos", "171,27", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL);

    I found this in the DLL help.

    But I would like to know, is there a funcion to click the mouse, for exemple, I move the mouse to a position and after this I call this function to click the left mouse button?

    Thank you for your help.

    Alex
  • Worm
    Indigo Rose Customer
    • Jul 2002
    • 3971

    #2
    Take a look at the KeyStrokes DLL I wrote. It'll allow you to move the pointer and send left/right mouse clicks too

    Comment

    Working...
    X