I guess the easiest way to ask how to do what I need to ask is to explain what I'm doing and what I want to happen.
I typically run 2 bots at once. I use a separate batch file to launch both bots and set their windows appropriately. My scripts will each run through 2 accounts (for 4 accounts total). I have my client restart settings set to restart the client after every other character. After each one runs through and finishes the second character, when the clients restart they restart at the same normal position that ROM normally starts in instead of where the batch file puts the windows.
How can I make them restart the client and keep the windows where they were at when the batch file originally launched? I would imagine it would have to be somewhere in my waypoint file that initiates the client restart? But I don't know what command could set the window size and position or where to put it.
Here's my "loadnext" waypoint file minus the logging I have it doing:
Code: Select all
When_Finished = "charlist"
-- "end" to end script, "relog" to log next character, "charlist" to log next in 'charlist'.
CharList = {{
{account=7 , chars= {1,2,3,4,5,6,7,8}},
{account=19 , chars= {1,2,3,4,5,6,7,8}},
},{
{account=12 , chars= {1,2,3,4,5,6,7,8}},
{account=24 , chars= {1,2,3,4,5,6,7,8}},
}}
SetRestartClientSettings(2, "myrom")
NextFileToLoad = "Elves/Puries/Daily" -- File to load after changing character.
--====================--
if When_Finished == "relog" then
sendMacro("}LoginNextToon=true;a={")
sendMacro("Logout();");
waitForLoadingScreen();
loadProfile()
loadPaths(NextFileToLoad);
elseif When_Finished == "charlist" then
SetCharList(CharList)
LoginNextChar()
loadProfile()
loadPaths(NextFileToLoad);
elseif When_Finished == "end" then
error("Ending script",2)
else
error("'When_Finished' option is invalid",0)
end