MOUSEEVENTF is used so I dont have to get the current mouse pos. The x and y coords will be relative to the cur mouse pos which means passing 0 wont change the mouse pos at all.
I guess you simply forgot to put a wait(1) between because this way the engine wont register any click but will stop any real mouse clicks from happening
alibaba, you can send clicks also with using the combined mouse-down, mouse-up events in mouse_event function. Also the wait(1) shouldn't be necessary. Why do you want to simulate a mouse click?
To click Panel Buttons using a Joystick. I set the mouse pos to the next button and simulate the mouse click in order to run the button event. Maybe it's also possible to make all buttons seperate panels but that would be too much rework of the code.