Difference between revisions of "SetMousePos"

From SCAR Divi Manual
Jump to: navigation, search
m (Freddy moved page MoveMouse to SetMousePos without leaving a redirect)
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
procedure MoveMouse(x, y: Integer);
+
procedure SetMousePos(const X, Y: Integer);
 
</source>
 
</source>
  
 
==Availability==
 
==Availability==
 
SCAR Divi 3.00 > Current
 
SCAR Divi 3.00 > Current
 +
 +
===Aliases===
 +
*MoveMouse (SCAR Divi 3.00 > 3.34)
  
 
==Description==
 
==Description==
This function moves the cursor to a coordinate ('''x''', '''y''') relative to the selected client window.
+
This function moves the cursor to a coordinate ('''X''', '''Y''') relative to the selected client window.
  
 
==Example==
 
==Example==
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   MoveMouse(500, 500);
+
   SetMousePos(500, 500);
 
end.
 
end.
 
</source>
 
</source>
Line 19: Line 22:
 
==See Also==
 
==See Also==
 
*[[GetMousePos]]
 
*[[GetMousePos]]
*[[MoveMouseSmooth]]
+
*[[MoveMouse]]
*[[MoveWindMouse]]
 
 
*[[ClickMouse]]
 
*[[ClickMouse]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Mouse Functions]]
 
[[Category:Mouse Functions]]

Revision as of 12:07, 8 September 2012

Definition

procedure SetMousePos(const X, Y: Integer);

Availability

SCAR Divi 3.00 > Current

Aliases

  • MoveMouse (SCAR Divi 3.00 > 3.34)

Description

This function moves the cursor to a coordinate (X, Y) relative to the selected client window.

Example

begin
  SetMousePos(500, 500);
end.

See Also