Simba Code:
(*
SlideMouse
~~~~~
.. code-block:: pascal
procedure SlideMouse(cx, cy, rx, ry: Integer);
Moves the mouse 'cx' across the x axis and 'cy' along the y axis
with a randomness of rx and ry
.. note::
by abu_jwka
Example:
.. code-block:: pascal
if IsUptext('ord') then
begin
Mouse(x, y, 0, 0, false);
SlideMouse(0, 10, 0, 0,);
ChooseOption('aw all');
end'
*)
procedure SlideMouse(cx, cy, rx, ry: Integer);
var
x, y: Integer;
begin
GetMousePos(x, y);
MMouse(x + cx, y + cy, rx, ry);
end;
Advantages? It moves along the x and y axis rather than to a specific co-ordinate.
So if two items/objects are a fixed distance from each other but not necessarily always in the same place, then SlideMouse will stop you from having to try and find the second item or object.
Go this idea mainly from here: http://villavu.com/forum/showthread.php?t=80679