Hai.
For some reason, when I use CloseWindow in my script, it double clicks the X button (making my guy walk like halway across the screen..). So, I made my own, but it does the same thing.
Here, lookie.
SCAR Code:
function CloseOpenWindows: Boolean;
var
TheDTM : Integer;
begin
TheDTM := DTMFromString('78DA6314646060E06740014AB262609A11CA6' +
'704A9E1445533A93517558D3890E042551311688FA906CD2E0F7B' +
'1354352240420C558DABAD01AA1A903D22A86A3A6A5331D5F0117' +
'03317A6BF76AE9D8CA20600C1AC0A1A');
If(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)) then
begin
Mouse(x, y, 2, 2, True);
repeat
Wait(random(100));
until(not(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)))
Result := True;
end else
Result := False;
end;
I only called Mouse once, as does CloseWindow (if I'm not mistaken..). Any other function of mine only clicks once, so I'm really not sure of this one's fetish to double click.
~PoW