Difference between revisions of "MoveMouseBox"

From SCAR Divi Manual
Jump to: navigation, search
Line 1: Line 1:
 
==Definition==
 
==Definition==
 
<source lang="scar" lines="false">
 
<source lang="scar" lines="false">
procedure MoveMouseBox(const Box: TBox);
+
procedure MoveMouseBoxEx(const Box: TBox; const MouseSpeed: Integer);
 
</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. An extended function with additional functionality is available as [[MoveMouseBoxEx]].
+
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.
  
 
==Example==
 
==Example==
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   MoveMouseBox(Box(100, 100, 500, 500));
+
   MoveMouseBoxEx(Box(100, 100, 500, 500), 15);
 
end.
 
end.
 
</source>
 
</source>
  
 
==See Also==
 
==See Also==
*[[MoveMouseBoxEx]]
+
*[[MoveMouseBox]]
*[[MoveMouse]]
+
*[[MoveMouseEx]]
 
*[[SetMousePos]]
 
*[[SetMousePos]]
  
 
[[Category:Functions]]
 
[[Category:Functions]]
 
[[Category:Mouse Functions]]
 
[[Category:Mouse Functions]]

Revision as of 20:03, 8 September 2012

Definition

procedure MoveMouseBoxEx(const Box: TBox; const MouseSpeed: Integer);

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. 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.

Example

begin
  MoveMouseBoxEx(Box(100, 100, 500, 500), 15);
end.

See Also