From 6b6985537218641278708a720d9e23967a27c862 Mon Sep 17 00:00:00 2001 From: Chris Sanden Date: Wed, 29 Apr 2026 14:04:14 +0200 Subject: [PATCH] optimised code and modified for MP use --- myShit/start.src | 45 ++++++++++++--------------------------------- 1 file changed, 12 insertions(+), 33 deletions(-) diff --git a/myShit/start.src b/myShit/start.src index 179fbff..db5bd84 100644 --- a/myShit/start.src +++ b/myShit/start.src @@ -1,46 +1,25 @@ homePW = #envar homePW doomKey = #envar doomKey -g = get_custom_object - doomPath = "/root/doom" myShell = get_shell("root", homePW) -/* -g.count = 0 - -while g.count < 2 - myShell.launch("/usr/bin/Terminal.exe", "doom") - print("Launched terminal #" + g.count + "\n") - g.count += 1 - wait 2 -end while -*/ - if not myShell then exit("Not able to get root shell...\n") else print("Root shell obtained") end if -i = 0 -while (i < 4) - myShell.launch("usr/bin/Terminal.exe", "some terminal launch arg") +filePath = "usr/bin/" +extension = ".exe" + +launchSequence = ["Terminal", "Terminal", "Terminal", "Terminal", "AdminMonitor", "FileExplorer", "Mail", "Notepad", "Chat"] +argSequence = ["", "doom", "doom", "doom", "", "", "", "", ""] + +if launchSequence.len != argSequence.len then exit(user_input("
Launch and args arent the same length...\nPress enter to exit...
")) + +for lines in launchSequence + myShell.launch(filePath + launchSequence[line] + extension, argSequence[line]) wait 2 - i += 1 -end while -i = 0 - -somePath = launch_path -print("\n Debug log: \n Parent path: " + parent_path(somePath) + "\n\n") - - -// uncomment for MP -//myShell.launch("/usr/bin/Chat.exe") -myShell.launch("/usr/bin/AdminMonitor.exe") -wait 2 -myShell.launch("/usr/bin/FileExplorer.exe") -wait 2 -myShell.launch("/usr/bin/Mail.exe") -wait 2 -myShell.launch("/usr/bin/Notepad.exe") +end for +exit() \ No newline at end of file