Jump to content

WinSetPointerPos

From EDM2
Revision as of 05:49, 15 May 2006 by Daniel.lee.kruse (talk | contribs) (WinSetPointerPos created)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Constants

Returns

Returns BOOL:

WinGetLastError could return:

Module

Define (C/C++)

INCL_WINPOINTERS or INCL_PM or INCL_WIN

Export name/Ordinal

Calling conversion

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

Notes

OS Version Introduced