Awkwardsaw
2009-12-01 20:33:36
after helping(i hope) ferocity, i came up with this simple little time saver/ ease maker :p
the descriptions should explain it enough :)
why you should use it:
is a lot better than
it is also faster.. :)
{*******************************************************************************
function mouseuptext(Arr : TVariantarray): boolean;
by: Awkwardsaw
Description: it will either move the mouse, move the mouse and check the uptext,
both + check the mouse, or just click the mouse depending on what
paramaters you fill in.
the first 4 elements are required! or the function is just useless
to use. the next element is true/ false. if you do not want to click
then leave it as a 0, or ''. if you do not want to check uptext,
do not fill in the next element :)
ex: mouseuptext([306, 280, 0, 0]); - just moves mouse
mouseuptext([306, 280, 0, 0, 0, 'ree']); - moves mouse, checks uptext
mouseuptext([306, 280, 0, 0, true, 'ree']); - checks uptext, clicks
mouseuptext([306, 280, 0, 0, false]); - just clicks
*******************************************************************************}
function mouseuptext(Arr : TVariantarray): boolean;
begin
mmouse(arr[0], arr[1], arr[2], arr[3]);
if high(arr) >= 5 then
if arr[5] <> null then
begin
result := waituptext(arr[5], 10);
if not result then exit;
end;
result := true;
if (high(arr) < 4) then exit;
if not VarType(Arr[4]) = 11 then
exit;
mouse(arr[0], arr[1], arr[2], arr[3], arr[4]);
end;the descriptions should explain it enough :)
why you should use it:
begin
mousespeed := 15;
mouseuptext([x, y, 0, 0, true, 'ree']);
end.is a lot better than
begin
mousespeed := 15;
mmouse(x, y, 0, 0);
if isuptext('ree') then
mouse(x, y, 0, 0, true);
end.it is also faster.. :)