Vb.net To java

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
6 posts Page 1 of 1
Contributors
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Vb.net To java
muttley1968
Hello i have this code for emebding minecraft so i can embed it to my program via a webbrowser control
Code: Select all
<section class="left">        
 <h1>Minecraft</h1>          
 <br/><br/><br/>        
 <applet code="net.minecraft.Launcher" archive="https://s3.amazonaws.com/MinecraftDownload/launcher/MinecraftLauncher.jar?v=1333544508000" codebase="/game/" width="854" height="480"> 
 <param name="separate_jvm" value="true">                        
 <param name="java_arguments" value="-Xmx1024M -Xms1024M -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false"> 
 <param name="userName" value="richardjmanning">       
 <param name="latestVersion" value="1333544508000">        
 <param name="downloadTicket" value="f2b2c96dd587807b502a64f7c6a7854b">    
 <param name="sessionId" value="6332351091269120883">    
 </applet>   
 </section>        
But i need to know how to make it do the same as this code would do
Code: Select all
Process.Start("minecraft.exe", String.Format("{0} {1} {2}", "", "12345", "192.168.0.1"))
           
is their anyway of making this code work inside that code so it boots straight to the server
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: Vb.net To java
muttley1968
Sorry for double post but i need to add does anyone know how to add a handler for the esc key as well i need to to display a message box when pressed and that is even if minecraft is open


Also is their anyway to check if the person is on a server or on single player
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: Vb.net To java
mandai
does anyone know how to add a handler for the esc key
You can use GetAsyncKeyState to check whether keys are pressed or released. There is a VB.Net sample here: viewtopic.php?f=32&t=4958&p=37340#p37340

Though I can't say that I'm familiar with this Minecraft game.
Filip
Coding Guru
Coding Guru
Posts: 833
Joined: Wed Jan 05, 2011 3:59 pm

Re: Vb.net To java
Filip
mandai wrote:
Though I can't say that I'm familiar with this Minecraft game.
Minecraft is indie game developed by Swedish company Mojang AB. It is sandbox free roam game where player can destroy and place blocks, make weapons tools and armor and try to survive as long it is possible. Game is written in Java.
Last edited by Filip on Mon Jan 07, 2013 11:51 am, edited 3 times in total.
CodenStuff wrote:
Nope, it's just your sick and dirty mind. You sick twisted warped little pervo :D
User avatar
AnoPem
VIP - Donator
VIP - Donator
Posts: 441
Joined: Sat Jul 24, 2010 10:55 pm

Re: Vb.net To java
AnoPem
As far as i can see its not possible
https://t.me/pump_upp
User avatar
muttley1968
Hardcore Programmer
Hardcore Programmer
Posts: 622
Joined: Thu Jun 17, 2010 11:54 pm

Re: Vb.net To java
muttley1968
Well is their anyway to take this code
Code: Select all
<param name="userName" value="richardjmanning"> 
nand make a login form before shoing the game so it is changed to the username entred on the account that is loged in
the program will be hosted on a dropbox or a website or i can attempt to embed it into the project should that be easier
6 posts Page 1 of 1
Return to “Coding Help & Support”