Keasbey
2013-02-17 07:36:26
So I am by no means good at scripting or fluent at SRL, but I'm trying to learn it :P
Anyway.. I was wondering if someone has done this yet, or could help me with making a script that re-loads a Powerbot client?
I'm guessing it would go something like this:
Function CheckLogStatus;
Begin
For c = 1 to 100000 do:
If LoggedIn then
begin
Wait(1000);
inc©;
end else
ReloadClient
end;
Procedure ReloadClient;
<Code for closing the PB windows>
<code for opening the PB windows>
<Code for selecting the account and running bot>
CheckLogStatus
end;
Is this sort of correct? If so, how would you setup SRL to select from the dropdown list of accounts? I haven't done a lot of "Findtext" coding, and I need to learn how soon.
Any help with this is greatly appreciated!
Anyway.. I was wondering if someone has done this yet, or could help me with making a script that re-loads a Powerbot client?
I'm guessing it would go something like this:
Function CheckLogStatus;
Begin
For c = 1 to 100000 do:
If LoggedIn then
begin
Wait(1000);
inc©;
end else
ReloadClient
end;
Procedure ReloadClient;
<Code for closing the PB windows>
<code for opening the PB windows>
<Code for selecting the account and running bot>
CheckLogStatus
end;
Is this sort of correct? If so, how would you setup SRL to select from the dropdown list of accounts? I haven't done a lot of "Findtext" coding, and I need to learn how soon.
Any help with this is greatly appreciated!