Results 1 to 9 of 9

Thread: Stop Script.

  1. #1
    Join Date
    Apr 2007
    Location
    Melbourne, Aus
    Posts
    202
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Stop Script.

    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?

  2. #2
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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

  3. #3
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    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


  4. #4
    Join Date
    Apr 2007
    Location
    Melbourne, Aus
    Posts
    202
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks mate, works perfectly

  5. #5
    Join Date
    Nov 2009
    Location
    Seattle, WA
    Posts
    589
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Floor66 View Post
    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;
    o, sorry =/
    Don't Troll, Don't Fight, Just keep the Respect
    Status : Offline

    Feel free to re-make my scripts ;D
    Community Member

  6. #6
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    No prob You know now
    Ce ne sont que des gueux


  7. #7
    Join Date
    Oct 2009
    Location
    Melb, Australia
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  8. #8
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Uhm... Yeah
    Ce ne sont que des gueux


  9. #9
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •