WinSetPointerPos: Difference between revisions
Appearance
No edit summary |
|||
Line 5: | Line 5: | ||
==Parameters== | ==Parameters== | ||
;desktopHndl | ;desktopHndl ([[HWND]]) - input : The desktop handle whether [[HWND_DESKTOP]] or another valid value. | ||
;x | ;x ([[LONG]]) - input : x-coordinate in pixels relative to the desktop's lower left corner in screen units. | ||
;y | ;y (LONG) - input : y-coordinate in pixels relative to the desktop's lower left corner in screen units. | ||
==Returns== | ==Returns== | ||
Returns | Returns (BOOL): | ||
*[[TRUE]] Successful | *[[TRUE]] Successful | ||
*[[FALSE]] Unsuccessful | *[[FALSE]] Unsuccessful |
Latest revision as of 19:07, 14 May 2025
WinSetPointerPos sets the pointer position.
Syntax
WinSetPointerPos(desktopHndl, x, y)
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);
Related Functions
- WinCreatePointer
- WinCreatePointerIndirect
- WinDestroyPointer
- WinDrawPointer
- WinLoadPointer
- WinQueryPointer
- WinQueryPointerInfo
- WinQueryPointerPos
- WinQuerySysPointer
- WinQuerySysPointerData
- WinSetSysPointerData
- WinShowPointer