Jump to content

WinSetPointerPos: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
Line 30: Line 30:


=== Related Functions ===
=== Related Functions ===
*[[WinCreatePointer]]
*WinCreatePointer
*[[WinCreatePointerIndirect]]
*WinCreatePointerIndirect
*[[WinDestroyPointer]]
*WinDestroyPointer
*[[WinDrawPointer]]
*WinDrawPointer
*[[WinLoadPointer]]
*WinLoadPointer
*[[WinQueryPointer]]
*WinQueryPointer
*[[WinQueryPointerInfo]]
*WinQueryPointerInfo
*[[WinQueryPointerPos]]
*WinQueryPointerPos
*[[WinQuerySysPointer]]
*WinQuerySysPointer
*[[WinQuerySysPointerData]]
*WinQuerySysPointerData
*[[WinSetPointer]]
*WinSetPointer
*[[WinSetSysPointerData]]
*WinSetSysPointerData
*[[WinShowPointer]]
*[[WinShowPointer]]


[[Category:Win]]
[[Category:Win]]

Revision as of 13:49, 19 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

Cdecl32

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
  • WinSetPointer
  • WinSetSysPointerData
  • WinShowPointer