Slav2 wrote:
SwitchLabel replaces the next algorithm label in different client to predefined label. Client will ignore its own algorithm setting:
If you need to assign label 200 as next in client 2 and call this from client 1 you should write:
Код: |
00: SwitchLabel(2;false;200)[10]
10: "something to continue"
|
Ok, just so I understand the sequence of events: this will run Label 200 in Client 2, then come back and do Label 10 in Client 1? If I wanted Client 2 to execute several functions and THEN return to Client 1, how would I achieve that? Here's my sample algorithm:
;SampleBot
00: Goto()[10+]
01: StopClient(;true;true)[01]
02: CloseEveWindow()[01;01]
03: CloseEveWindow()[01;05]
05: StartEveAndLogin(true)[01;20;20;05]
10: StartEveAndLogin(true)[01;20;20;10]
20: StationSpaceCheck()[90;90;45;40+;90]
35: WarpingToStation()[90;45;35;40;38]
38: Unstuck()[90;38;03+;35]
40: DockingToStation(;

[90;35+;40;40;45]
45: UnloadCargo()[90+;40;02+;46]
46: AFKLogOffTimers()[90+;46c+;10;47;47]
46c: Sleep(60000)[46c;46]
47: AutoHotkey(Script.ahk;30;False;False;EPVars.ini|EPSection|EPResult)[47a;46;48;48;48]
47a: AutoHotkey(Script.ahk;30;False;False;EPVars.ini|EPSection|EPResult)[03;46;48;48;48]
48: CheckLocal(;

[03+;46+;46+]
90: ErrorHandler()[03+;03+;03+]
CL: Goto()[03]
EC: Goto()[10]
FM: Goto()[35+]
LO: Goto()[03]
WO: Goto()[35+]
What I would want this bot to do is to start up, run to 48 (CheckLocal) then pass it off to Client 2, run that up through 48, repeat for the total number of clients (3-5 total), then pass back to Client 1 at 46 so that it checks logoff timers and then loops through 47/47a and then to 48 (ideally), pass off to the next client at 46 to run through 48, pass off to next client to run 46 through 48, back to Client 1, repeat etc. Where would the SwitchLabel and Barrier be? Will I need an Ini file to keep track of current client number?