View Full Version : DepositBox
Function CloseDepositBox:boolean;
var
x2, y2:integer;
begin
DepositAll;
if FindObjCustom(x2, y2, ['Close'], [1580837], 0) then
MMouse(x2, y2, 2, 2);
ClickMouse2(True);
end;
No clue who created "DepositAll", rest of the function is mine since "CloseBank" wouldn't work for this :L
[Nathan]
01-02-2012, 11:09 PM
MMouse(x2, y2, 2, 2);
Mouse(x2, y2, 2,2, True);
Should be avoided. It will move the mouse to a 4x4 area, and then quickly move to a different spot within the box to click? It causes the mouse to be really jerkly and not-humanlike.
I would do this:
MMouse(x2, y2, 2, 2);
GetMousePos(x2,y2);
Mouse(x2, y2, 0,0, True);
;879833'] MMouse(x2, y2, 2, 2);
Mouse(x2, y2, 2,2, True);
Should be avoided. It will move the mouse to a 4x4 area, and then quickly move to a different spot within the box to click? It causes the mouse to be really jerkly and not-humanlike.
I would do this:
MMouse(x2, y2, 2, 2);
GetMousePos(x2,y2);
Mouse(x2, y2, 0,0, True);
MMouse(x2, y2, 2, 2);
ClickMouse2(True);
MMouse(x2, y2, 2, 2);
ClickMouse2(True);
Omggg
the CilckMouse2 was what i was searching for, i couldn't remember it!
Thanks :D
Zyt3x
01-02-2012, 11:23 PM
Mouse does a MMouse and a ClickMouse2 all in one function, btw.
[Nathan]
01-02-2012, 11:34 PM
Mouse does a MMouse and a ClickMouse2 all in one function, btw.
Good call, in this situation only using Mouse works best, I was thinking of checking uptext, where you would want to do them seperate...
Just started writing my first script and noticed CloseBank; didn't work for it too, i found that CloseWindow; works.
Good idea though, they should add in since its the only thing really missing, Good job :)
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.