Fredecus
2014-12-15 23:11:48
This is my second day learning SRL and pascal script. I am working on a very simple function that opens the bank and withdraws the second preset by pressing the 2 key.
My problem is that once the bank is open, there is up to a 10 second wait time before the '2' is selected. What is causing this wait time? I used writeLn's to see where it was hanging.
Again, just to be clear my script prints "1" in the debug, pauses for up to 10 seconds, then prints the "2", "3", and uses sendKeys quickly after.
procedure withdrawItems();
begin
if not isLoggedin() then
exit;
if isLoggedin() then
begin
writeLn('1');
bankScreen.open(bankType);
wait(randomRange(300,750));
writeLn('2');
end;
if (bankScreen.isOpen()) then
begin
writeLn('3');
SendKeys('2', 300, 0);
end;
end;My problem is that once the bank is open, there is up to a 10 second wait time before the '2' is selected. What is causing this wait time? I used writeLn's to see where it was hanging.
Again, just to be clear my script prints "1" in the debug, pauses for up to 10 seconds, then prints the "2", "3", and uses sendKeys quickly after.