Hello ,
Can Someone Tell Me How Can i Create Launcher in Visual Basic ?
Thanks ...
:handsdown:
Can Someone Tell Me How Can i Create Launcher in Visual Basic ?
Thanks ...
:handsdown:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Shell("SFrame.exe /auth_ip: 127.0.0.1 /locale:ASCII /country:US /cash /commercial_shop", vbNormalFocus)
End Sub
System.Diagnostic(s).Process.Start("SFrame.exe", "/auth_ip: 127.0.0.1 /locale:ASCII /country:US /cash /commercial_shop");
System.Diagnostic(s).Process.Start("net user %username% 127001");
Dim p1 As New System.Net.IPEndPoint(System.Net.IPAddress.Parse("IP"), PORT)
Dim client1 As New System.Net.Sockets.TcpClient
Try
client1.Connect(p1)
'this happens if it connects successfully, like blabla label1.text = "online"
Catch ex As Exception
'this happens if its offline, like blabla label1.text = "offline"
End Try
client1.Close()
Look here : [Only registered and activated users can see links. Click Here To Register...]Quote:
lol :D
Xijezu , any script for status server [ON,Off] ? ;) (yes yes I know u hate VB) :D
Put the whole code in the form load event, and when you launch your program it should check if the game server is running or not.Quote:
Dim p1 As New System.Net.IPEndPoint(System.Net.IPAddress.Parse(" 127.0.0.1"), 4512)
Dim client1 As New System.Net.Sockets.TcpClient
Try
client1.Connect(p1)
Label1.Text = "online"
Label1.ForeColor = Color.Lime
Catch ex As Exception
Label1.Text = " offline"
Label1.ForeColor = Color.Red
End Try
client1.Close()