Can anyone tell me if there is a procedure you can add that will do something if the stop button is pressed or ctrl+alt+s?
Like post a proggy to the debug box?
Can anyone tell me if there is a procedure you can add that will do something if the stop button is pressed or ctrl+alt+s?
Like post a proggy to the debug box?
you can probably do if TerminateScript then Progress_Report; If that doesn't work im sure there are other ways, like detecting if keys are pressed together.
Last edited by Heavenguard; 01-03-2010 at 02:27 PM.
Don't Troll, Don't Fight, Just keep the Respect
Status : Offline
Feel free to re-make my scripts ;D
Community Member
Nope, Heaven. You can do:
SCAR Code:program New;
procedure ScriptTerminate;
begin
WriteLn('This will show on termination!');
end;
begin
repeat
Wait(10);
until(False);
end;
Ce ne sont que des gueux
Thanks mate, works perfectly![]()
Don't Troll, Don't Fight, Just keep the Respect
Status : Offline
Feel free to re-make my scripts ;D
Community Member
No probYou know now
![]()
Ce ne sont que des gueux
Omg, so.. ScriptTerminate is like a hook to add stuff before TerminateScript?
Uhm... Yeah![]()
Ce ne sont que des gueux
There are ScriptPause and ScriptResume as well but those are buggy I believe.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
There are currently 1 users browsing this thread. (0 members and 1 guests)