Simulate Mouse Click Within Your Program Area Form
Posted on 2005-04-13
hi, I need to simulate a mouse click at a certain point within the form area.
how do I do that?
with doing it from the desktop the code is
mouse_event(MOUSEEVENTF_LEFTDOWN, 100,100, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 100,100, 0, 0);
but the thing with that is you move the window, you got to change the x/y, if the x/y was within the program form area, then the program can be hidden or moved and it can still be clicked.
anyone know how I can do this?