If I write out the script to do this and put it by itself in the script, or at the very beginning of the script it works. However if it is near the end, where it needs to be. SCAR stops responding and exits. I tried opening something other then AIM and the same thing happened. Is there a better way?
SCAR Code:
Procedure TextMessage;
begin
SetDesktopAsClient;
Wait(5000);
MoveMouseSmooth(1296, 883);
Wait(2000);
ClickMouse (1296, 883, True);
Wait(200);
ClickMouse (1296, 883, True);
Wait(1000);
Wait(2000);
MoveMouseSmooth(1319, 322);
Wait(2000);
ClickMouse (1319, 322, True);
Wait(200);
ClickMouse (1319, 322, True);
Wait(1000);
TypeSend('Did ' +inttostr(Banks)+ ' loads!');
Wait(2000);
MoveMouseSmooth(1171, 628);
Wait(1000);
ClickMouse (1171, 628, True);
end;