WinSetPointerPos: Difference between revisions
Appearance
mNo edit summary |
No edit summary |
||
Line 18: | Line 18: | ||
INCL_WINPOINTERS or INCL_PM or INCL_WIN | INCL_WINPOINTERS or INCL_PM or INCL_WIN | ||
=== Calling | === Calling Convention === | ||
[[Cdecl32]] | [[Cdecl32]] | ||
Revision as of 19:19, 18 January 2017
WinStartTimer
- WinSetPointerPos(desktopHndl, x, y)
- Set the pointer position.
Parameters
- desktopHndl - HWND - input
- The desktop handle whether HWND_DESKTOP or another valid value.
- x - LONG - input
- x-coordinate in pixels relative to the desktop's lower left corner in screen units.
- y - LONG - input
- y-coordinate in pixels relative to the desktop's lower left corner in screen units.
Returns
Returns BOOL:
WinGetLastError could return:
Define (C/C++)
INCL_WINPOINTERS or INCL_PM or INCL_WIN
Calling Convention
Example Code
HWND desktopHndl; LONG x; LONG y; BOOL rc; ... rc = WinSetPointerPos(desktopHndl, x, y);