I\'m writing Remote Desktop clone in C++ using QT. So far I\'m able to move the mouse cursor around fine. QT has a nice setPos function for that. However, I\'m a bit lost as
Combining all togegher, here is the code for Qt:
#include QApplication::desktop()->cursor().setPos(globalX,globalY); mouse_event(MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 1, 1, 0, 0);