Results 1 to 5 of 5

Thread: Script gets buggy when disabling smart

  1. #1
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Script gets buggy when disabling smart

    When I disable smart without putting the script onto pause first, the script will go on, but can't see anything. This will give problems.. after enabling the smart again, the scirpt just will do nothing...

    Is there a way to check whether the smart is enabled or not?

    Because if so, i would like to make this procedure, and put it into every procedure, so that the script won't get stuck:

    Simba Code:
    Procedure WaitUntilSmartActivated(seconds:integer);
    var
      seconds := integer;
    begin
     
      if(SmartEnabled = False) then //this function is a function but doesn't work for me....
      begin
        wait(1000);
        Writeln('Smart is disabled, we''re waiting for ' + IntToStr(seconds) + ' seconds now.');
        WaitUntilSmartActivated(seconds+1);
        exit;
      end;
     
    end;

    Does this work?
    I tried the function SmartEnabled but that didn't seem to work also when I tried it, the simba closed!

    Do I have the right function, then what am I doing wrong?


    ~Greetz
    //MasterCrimez

  2. #2
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm sorry I can't help with your actual question, but can't you just pause the script? In terms of your Procedure:
    Simba Code:
    Procedure WaitUntilSmartActivated;
    begin

      if(not SmartEnabled)do
        WriteLn('Waitng for smart to be enabled');
     
      while(not SmartEnabled)do//This will wait until smart is enabled (if that function did work)
        wait(1000);    
     
    end;

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    When you disable smart, your script does not go on.. :S Doesn't happen to me. It basically pauses since it cannot get any information from the client. When unpaused, it continues where it last left off.

    To answer your strict question: SmartActive or SmartEnabled will tell you whether smart is on the screen and if Smart is enabled.

    RSReady can probably work too since it has to read the data from smart.
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    When you disable smart, your script does not go on.. :S Doesn't happen to me. It basically pauses since it cannot get any information from the client. When unpaused, it continues where it last left off.

    To answer your strict question: SmartActive or SmartEnabled will tell you whether smart is on the screen and if Smart is enabled.

    RSReady can probably work too since it has to read the data from smart.
    Disabling smart just pauses the screen that simba can see, so it will carry on running, but when it reads the screen it will get the old screen...

  5. #5
    Join Date
    Jun 2012
    Location
    THE Students-City of Holland
    Posts
    332
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    thanks.. Actually it isn't really that important, but sometimes it's kind of irritating me that when I disable Smart, and accidentally not pause the script, I have to restart the whole script

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
  •