Page 1 of 1

Minecraft automatic server connect

Posted: Thu Feb 09, 2012 7:54 pm
by Vikhedgehog
Hello

This is a quick snip how to make minecraft automatically join a server. Note that this code works only if you have legally bought minecraft. You need 2 textboxes and 1 button. The first textbox should be username, second should be password. You need to have minecraft.exe located on the desktop for this to work!!! Now for the code:
Code: Select all
Process.Start(Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "\minecraft.exe", TextBox1.Text & " " & TextBox2.Text & " " & "YourServer.ip" & " ")
I have made a fully functional example, called MCServers. Basically it lets you choose a server from the list or you can type another server. Right after the app will launch minecraft and close itself, minecraft will do all clicks for you until your connected to the server :D If you have a cracked copy, minecraft will tell you that you failed to log in and this code will be useless in that case. You also wont be able to join any of the servers listed as they are all premium only.

I hope you enjoy this little snip :P
Capture.PNG
MCServers.zip

Re: Minecraft automatic server connect

Posted: Thu Feb 09, 2012 8:38 pm
by MrAksel
Nice snip! You could also use a socket to check if the server is on and launch minecraft when it successfully makes a connection.

Re: Minecraft automatic server connect

Posted: Thu Feb 09, 2012 9:38 pm
by Vikhedgehog
MrAksel wrote:
Nice snip! You could also use a socket to check if the server is on and launch minecraft when it successfully makes a connection.
Thanks :D And i don't know anything about socket stuff :S

Re: Minecraft automatic server connect

Posted: Thu Feb 09, 2012 9:41 pm
by Martin
Cool stuff :D also i keep looking at ur theme what is it called :D

Re: Minecraft automatic server connect

Posted: Thu Feb 09, 2012 10:12 pm
by Vikhedgehog
Martin wrote:
Cool stuff :D also i keep looking at ur theme what is it called :D
Thanks :D The theme is called Iohanna edited: http://shafck.deviantart.com/art/Iohann ... -153242412

Re: Minecraft automatic server connect

Posted: Fri Feb 10, 2012 6:39 am
by comathi
Cool stuff :D Great job!

Re: Minecraft automatic server connect

Posted: Fri Feb 10, 2012 1:06 pm
by AquuL
Good job Vik.

Re: Minecraft automatic server connect

Posted: Fri Feb 10, 2012 2:19 pm
by Vikhedgehog
I'm glad you like it guys. I'm gonna post some new tuts soon :D