PDA

View Full Version : How to execute Script once Smart Client is up



Vibrane
08-10-2017, 01:42 PM
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

acow
08-10-2017, 07:15 PM
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?