Results 1 to 2 of 2

Thread: How to execute Script once Smart Client is up

  1. #1
    Join Date
    Aug 2017
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default How to execute Script once Smart Client is up

    Hello

    Assuming the Smart Client is up and running how can I start up the script or continue the script

    Assuming the following code

    program actionBarExample;
    {$DEFINE SMART}
    {$I SRL-6/SRL.simba}

    procedure actionBarTest();
    var
    myHP: integer;
    begin
    myHP := actionBar.getHPPercent(); // Now the 'myHP' variable is holding our current HP
    writeLn(myHP);
    end;

    begin
    clearDebug();
    setupSRL();
    actionBarTest();
    end.


    //////////////////////////////////////////////////////////////////


    setupSRL(); -> sets up the smart client and wallah it works and the actionBarTest() says 100. However say i had this actionBarTest and i was afk for like 20 minutes.

    Now, I know the smart client has a toggle which says smart enabled or disabled (cant find this in documentation), can i do something like

    "when smart is re-enabled" then execute actionBarTest();

    Thanks

  2. #2
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    That seems like a very strange thing to want to do.

    Are you logging in manually? If so, why not just have the script do that for you?

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
  •