Difference between revisions of "MoveMouseBox"
From SCAR Divi Manual
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
<source lang="scar" lines="false"> | <source lang="scar" lines="false"> | ||
− | procedure | + | 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. | + | 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 | ||
− | + | MoveMouseBoxEx(Box(100, 100, 500, 500), 15); | |
end. | end. | ||
</source> | </source> | ||
==See Also== | ==See Also== | ||
− | *[[ | + | *[[MoveMouseBox]] |
− | *[[ | + | *[[MoveMouseEx]] |
*[[SetMousePos]] | *[[SetMousePos]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Mouse Functions]] | [[Category:Mouse Functions]] |
Revision as of 19: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.