Difference between revisions of "MoveMouseBox"

From SCAR Divi Manual
Jump to: navigation, search
(Undo revision 1724 by Freddy (talk))
 
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
procedure MoveMouseBoxEx(const Box: TBox; const MouseSpeed: Integer);
+
procedure MoveMouseBox(const Box: TBox);
 
</source>
 
</source>
  
Line 8: Line 8:
  
 
==Description==
 
==Description==
Moves the cursor to a random coordinate within the given [[TBox]] '''Box''', relative to the active client window's input area. The given '''MouseSpeed''' determines the how fast the cursor moves, a higher value means it will move faster. The default speed in [[MoveMouseBox]] is 20.
+
Moves the cursor to a random coordinate within the given [[TBox]] '''Box''', relative to the active client window's input area. An extended function with additional functionality is available as [[MoveMouseBoxEx]].
  
 
==Example==
 
==Example==
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   MoveMouseBoxEx(Box(100, 100, 500, 500), 15);
+
   MoveMouseBox(Box(100, 100, 500, 500));
 
end.
 
end.
 
</source>
 
</source>
  
 
==See Also==
 
==See Also==
*[[MoveMouseBox]]
+
*[[MoveMouseBoxEx]]
*[[MoveMouseEx]]
+
*[[MoveMouse]]
 
*[[SetMousePos]]
 
*[[SetMousePos]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Mouse Functions]]
 
[[Category:Mouse Functions]]

Latest revision as of 20:06, 8 September 2012

Definition

procedure MoveMouseBox(const Box: TBox);

Availability

SCAR Divi 3.35 > Current

Description

Moves the cursor to a random coordinate within the given TBox Box, relative to the active client window's input area. An extended function with additional functionality is available as MoveMouseBoxEx.

Example

begin
  MoveMouseBox(Box(100, 100, 500, 500));
end.

See Also