I need to write a small program that can know where the user click the button or somehow on a application windows whatever the application windows change the size .
Through use the windows API, now I can only get the global cursor click position.
I find a small program from china that have similar function using AHK to implement it. Maybe the author use this (WinGetPos) see the image below:
So, Is the any windows api or other QT5, C++ function can help me get the application windows cursor click position. (I develop in QT5)
post some code on here:
GetCursorPos (&screenpoint);
hwndFoundWindow = WindowFromPoint (screenpoint);
mp.DisplayInfoOnFoundWindow(QString::fromLocal8Bit("L"), hwndFoundWindow, pMouseStruct->pt.x, pMouseStruct->pt.y);
Aucun commentaire:
Enregistrer un commentaire