Jump to content

SpSetPointerPos: Difference between revisions

From EDM2
Created page with "This function sets the pointer position. '''Syntax:''' success = spSetPointerPos ( [ hwndDesktop , ] PosX , PosY ) '''Parameters:''' * hwndDesktop – Desktop-window handle..."
 
Ak120 (talk | contribs)
 
(3 intermediate revisions by 2 users not shown)
Line 18: Line 18:
  CALL spSetPointerPos xptrpos,yptrpos
  CALL spSetPointerPos xptrpos,yptrpos
  [...]
  [...]
[[Category:SpUtils]]

Latest revision as of 23:53, 6 March 2017

This function sets the pointer position.

Syntax: success = spSetPointerPos ( [ hwndDesktop , ] PosX , PosY )

Parameters:

  • hwndDesktop – Desktop-window handle. If ommited the default desktop
  • handle (HWND_DESKTOP) will be used.
  • PosX – X-position of pointer in screen coordinates.
  • PosY – Y-position of pointer in screen coordinates.

Returns:

  • True (1) – Pointer position successfully updated.
  • False (0) – Pointer position not successfully updated.

Example Code: (part of spQueryPointerPos example code)

/* scclock.cmd (spUtils Example Code) */
[...]
CALL spSetPointerPos xptrpos,yptrpos
[...]