SRL Archive - S.M.A.R.T. Questions and Answers.

Smart Delay


zonfire

2010-07-06 08:47:10

ok well when i start my script up smart window comes up and loads etc and then it takes about 2-3 minutes before the script starts working

begin
SMARTSetupEx(113, True, True, False);
SetTargetDC(SMARTGetDC);
SmartSetDebug(True);
SetUpSRL;

repeat
WriteLn('aerhtt');

PickupTar ;
until(false);
end.

doesnt start typing aerhtt for the 2-3 minutes

also the script is supposed to use reflection to pick up an item but instead the mouse just moves and clicks on the world map
any help much appreciated ty

Frement

2010-07-06 08:50:05

You don't need to use SmarSetups etc.

Just:
program New;
{$DEFINE SMART}
{$I SRL/SRL.scar}

begin
SetupSRL;
//STUFF
end.

Thought I don't know if that is what causes your delay.

zonfire

2010-07-06 08:53:58

Ah i see havent been here in a while expect a few more dumb questions too :)
didnt help the delay nor the reflection problem tho as it does the same thing basically