Log in

View Full Version : Make SCAR pause script?



Harry
09-01-2007, 02:33 AM
Is there a way for SCAR to pause the script (like in the Login.scar, once it detects Jagex had a rs update), it will pause instead of terminating? So I can continue to 'keep up' that proggy when I wake up in the morning? =]

-Harry

Rune Hacker
09-01-2007, 02:43 AM
uhh, what happens if you tell it to press keys Ctrl + Alt + A? That is the binding to pause the script so i guess just tell scar to press and hold those, sounds like it would work but idk.

Harry
09-01-2007, 12:18 PM
Sorry for my noobieness, but how would I do that? :$

Pentti
09-01-2007, 12:28 PM
If you did like Rune Hacker said, you wouldnt get SCAR work after pausing it.. :D
Just use like:
Repeat
Wait(500);
Until Something;

Harry
09-01-2007, 12:29 PM
Like.. here is my login.scar, btw, hihi pentii.


if FindText(tx, ty, 'reload', upchars, 240, 180, 530, 240) then
begin
WriteLn('ERROR. RuneScape has been updated. Script Terminated.');
FreeBitmap(tmpMask);
FreeBitmap(ClickHereToPlay);
//TerminateScript;
repeat
Wait(300);
until(IsKeyDown('g'));
FindRS;
LoginPlayer;
Exit;
end else

mat_de_b
09-01-2007, 03:51 PM
If you reckon it will run for a long time after you leave it then up the wait so that its easier on the computer

NxTitle
09-02-2007, 04:08 PM
uhh, what happens if you tell it to press keys Ctrl + Alt + A? That is the binding to pause the script so i guess just tell scar to press and hold those, sounds like it would work but idk.

If you did that, how would it resume?

what I would do would be either Sleep (or if you're feeling cocky, SleepAndMoveMouse) and just put 1800 (half an hour) or something.