Sign in to follow this  
Followers 0
EpicKnarvik97

Need some help with stopping a started file

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Anything related to game automation is expressly forbidden.

Share this post


Link to post
Share on other sites

EpicKnarvik97,

jaberwocky6669 is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. Thread locked. :naughty:

But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0