📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BorderStyle = 1 'Fixed Single
Caption = "O2Jam Launcher"
ClientHeight = 2520
ClientLeft = 45
ClientTop = 330
ClientWidth = 2445
Icon = "Form1.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2520
ScaleWidth = 2445
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "Play"
Height = 495
Left = 120
TabIndex = 3
Top = 1680
Width = 2175
End
Begin VB.Frame Frame1
Caption = "Server:"
Height = 1455
Left = 120
TabIndex = 0
Top = 120
Width = 2175
Begin VB.TextBox Text3
Alignment = 2 'Center
Height = 270
Left = 1200
TabIndex = 7
Text = "15010"
Top = 960
Width = 855
End
Begin VB.TextBox Text2
Alignment = 2 'Center
Height = 270
Left = 1200
TabIndex = 5
Text = "15000"
Top = 600
Width = 855
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Height = 270
Left = 600
TabIndex = 2
Text = "192.168.0.1"
Top = 240
Width = 1455
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "Port2:"
Height = 180
Left = 120
TabIndex = 6
Top = 1080
Width = 540
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "Port1:"
Height = 180
Left = 120
TabIndex = 4
Top = 720
Width = 540
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "IP:"
Height = 180
Left = 120
TabIndex = 1
Top = 360
Width = 270
End
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "WwW.Team-Explore.Cn"
Height = 180
Left = 360
TabIndex = 8
Top = 2280
Width = 1710
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim Port1 As Integer
Dim Port2 As Integer
Port1 = Int(Text2.Text)
Port2 = Int(Text3.Text)
Dim ShellCode As String
Dim IP As String
IP = Text1.Text
On Error Resume Next
ShellCode = "OTwo.exe 1 " & IP & " o2jam/patch " & IP & ":" & Port1 & " 1 1 1 1 1 " & IP & " " & Port2 & " " & IP & " " & Port2 & " " & IP & " " & Port2 & " " & IP & " " & Port2 & " " & IP & " " & Port2 & " " & IP & " " & Port2 & " " & IP & " " & Port2 & " " & IP & " " & Port2
Shell ShellCode, vbHide
End Sub
Private Sub Form_Load()
If (LangID = 1) Then
'English
Command1.Caption = "Play"
Label1.Caption = "IP:"
Frame1.Caption = "Server:"
Label2.Caption = "Web Port:"
Label3.Caption = "Game Port:"
Else
'Chinese
Label2.Caption = "Web 端口:"
Label3.Caption = "游戏端口:"
Frame1.Caption = "服务器:"
Label1.Caption = "IP:"
Command1.Caption = "开始"
Form2.Caption = "劲乐团万能启动器"
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -