I have made a function to start some jar files:
Run("java " & $chosen & ' -jar "BungeeCord.jar"', 'E:\Spill\Alle spill\Minecraft\bungee', $Hide) WinSetTitle("C:\Windows\system32\java.exe", "", "Bungee") Sleep(1000) Run("java " & $chosen & ' -jar "spigot-1.6.2-R0.1.jar"', "E:\Spill\Alle spill\Minecraft\Bungee Servers\Hub", $Hide) WinSetTitle("C:\Windows\system32\java.exe", "", "Hub") Sleep(1000) Run("java " & $chosen & ' -jar "spigot-1.6.2-R0.1.jar"', "E:\Spill\Alle spill\Minecraft\Bungee Servers\Survival", $Hide) WinSetTitle("C:\Windows\system32\java.exe", "", "Survival") Sleep(1000) Run("java " & $chosen & ' -jar "spigot-1.6.2-R0.1.jar"', "E:\Spill\Alle spill\Minecraft\Bungee Servers\KnarWorld", $Hide) WinSetTitle("C:\Windows\system32\java.exe", "", "KnarWorld") Sleep(1000) Run("java " & $chosen & ' -jar "spigot-1.6.2-R0.1.jar"', "E:\Spill\Alle spill\Minecraft\Bungee Servers\Plotworld", $Hide) WinSetTitle("C:\Windows\system32\java.exe", "", "Plotworld") Sleep(1000)
Then I made an easy function to stop it:
ControlSend("Bungee", "", "", "end {ENTER}") ControlSend("Hub", "", "", "stop {ENTER}") ControlSend("Survival", "", "", "stop {ENTER}") ControlSend("KnarWorld", "", "", "stop {ENTER}") ControlSend("Plotworld", "", "", "stop {ENTER}")
When I am running it normal, it isn't any problems. The problem is when I am using @SW_HIDE to hide the console. Then the first and last item doesn't stop. I don't know why or how to get it to work.