how can i make the textbox update in realtime
Posted: Tue May 07, 2013 8:35 pm
hello im building a custom minecraft launcher (still need minecraft account)
im building it kinda like magic launcher my aim is :P
anyway I have it launching fine but I have a
cmd box at the side I want to update in real time
here is a pic
This is the code for the button that launches the game and works fine when you close the game it will update
with all the info from when the game started
https://dl.dropboxusercontent.com/u/446 ... esting.bat
im building it kinda like magic launcher my aim is :P
anyway I have it launching fine but I have a
cmd box at the side I want to update in real time
here is a pic

This is the code for the button that launches the game and works fine when you close the game it will update
with all the info from when the game started
Code: Select all
here is a link to a .bat file that does exactly what I want :P entregame.Tag = "java -Xms256m -Xmx256m -cp ""%APPDATA%\.minecraft\bin\minecraft.jar;%APPDATA%\.minecraft\bin\jinput.jar;%APPDATA%\.minecraft\bin\lwjgl.jar;%APPDATA%\.minecraft\bin\lwjgl_util.jar"" -Djava.library.path=""%APPDATA%\.minecraft\bin\natives"" net.minecraft.client.Minecraft"
BackTrackTextBox2.Text = ""
Dim start_info As New ProcessStartInfo("cmd")
start_info.UseShellExecute = False
start_info.CreateNoWindow = True
start_info.RedirectStandardOutput = True
start_info.RedirectStandardError = True
start_info.RedirectStandardInput = True
Dim proc As New Process()
proc.StartInfo = start_info
proc.Start()
Dim std_out As StreamReader = proc.StandardOutput
Dim SW As System.IO.StreamWriter = proc.StandardInput
Dim std_err As StreamReader = proc.StandardError()
SW.WriteLine(entregame.Tag)
SW.WriteLine("exit")
BackTrackTextBox1.Text = std_out.ReadToEnd()
BackTrackTextBox2.Text = std_err.ReadToEnd()
std_err.Dispose()
SW.Close()
std_out.Close()
std_err.Close()
proc.Close()
https://dl.dropboxusercontent.com/u/446 ... esting.bat