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