📄 smsmainfrm.frm
字号:
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 375
Left = 240
TabIndex = 16
Top = 960
Width = 1215
End
Begin VB.OptionButton Option2
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Flash SMS"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 375
Left = 240
TabIndex = 6
Top = 600
Width = 1215
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Normal"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 375
Left = 240
TabIndex = 5
Top = 240
Value = -1 'True
Width = 1215
End
End
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
BackColor = &H00A27E66&
BorderStyle = 0 'None
FillColor = &H00A27E66&
ForeColor = &H00FFFFFF&
Height = 135
Left = 7560
ScaleHeight = 135
ScaleWidth = 135
TabIndex = 3
Top = 120
Width = 135
End
Begin VB.Label Label13
Alignment = 2 'Center
Appearance = 0 'Flat
BackColor = &H00A27E66&
Caption = "v1.0"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Left = 600
TabIndex = 35
Top = 6480
Width = 615
End
Begin VB.Label Label6
Appearance = 0 'Flat
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 5880
Left = 1080
TabIndex = 15
Top = 480
Width = 255
End
Begin VB.Label Label7
Appearance = 0 'Flat
BackColor = &H00A27E66&
Caption = " Xiamen LangYu Inc."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 6630
TabIndex = 20
Top = 6480
Width = 1455
End
Begin VB.Line Line13
X1 = 0
X2 = 8520
Y1 = 0
Y2 = 0
End
Begin VB.Line Line12
X1 = 0
X2 = 8520
Y1 = 6810
Y2 = 6810
End
Begin VB.Line Line11
X1 = 8520
X2 = 8520
Y1 = 0
Y2 = 6840
End
Begin VB.Line Line6
X1 = 0
X2 = 0
Y1 = 0
Y2 = 6840
End
Begin VB.Line Line5
BorderColor = &H00FFFFFF&
X1 = 7560
X2 = 7680
Y1 = 255
Y2 = 255
End
Begin VB.Label Label3
BackColor = &H00A27E66&
Caption = "X"
ForeColor = &H00FFFFFF&
Height = 255
Left = 7800
TabIndex = 2
Top = 120
Width = 135
End
Begin VB.Label Label2
BackColor = &H00A27E66&
Height = 255
Left = 7440
TabIndex = 1
Top = 120
Width = 615
End
Begin VB.Label Label1
BackColor = &H00A27E66&
Caption = " www.138139.com"
BeginProperty Font
Name = "Verdana"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 255
Left = 450
TabIndex = 0
Top = 120
Width = 1785
End
Begin VB.Line Line4
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 300
Y2 = 300
End
Begin VB.Line Line3
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 240
Y2 = 240
End
Begin VB.Line Line2
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 180
Y2 = 180
End
Begin VB.Line Line1
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 120
Y2 = 120
End
Begin VB.Shape Shape1
BorderStyle = 0 'Transparent
FillColor = &H00A27E66&
FillStyle = 0 'Solid
Height = 495
Left = 0
Top = 0
Width = 8655
End
Begin VB.Line Line10
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 6480
Y2 = 6480
End
Begin VB.Line Line9
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 6540
Y2 = 6540
End
Begin VB.Line Line8
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 6600
Y2 = 6600
End
Begin VB.Line Line7
BorderColor = &H00FFFFFF&
X1 = 120
X2 = 8390
Y1 = 6660
Y2 = 6660
End
Begin VB.Label Label11
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "xmsky@138139.net"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 255
Left = 6600
TabIndex = 32
Top = 6060
Width = 1695
End
Begin VB.Label Label12
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
Caption = "Connecting..."
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Left = 1440
TabIndex = 33
Top = 6075
Width = 1335
End
Begin VB.Shape Shape2
BorderStyle = 0 'Transparent
FillColor = &H00A27E66&
FillStyle = 0 'Solid
Height = 495
Left = 0
Top = 6360
Width = 8775
End
Begin VB.Image Image1
Height = 7875
Left = -120
Picture = "SMSmainfrm.frx":030E
Top = 360
Width = 1335
End
End
Attribute VB_Name = "SMSmainfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'================================================================
'================================================================
'*** SMS Messenger v1.0 ***
'================================================================
'================================================================
'*** For any Questions or Comments concerning this program ***
'*** Homepage : http://www.138139.com ***
'================================================================
'================================================================
'*** Frame Name : SMSmainfrm.frm ***
'*** Date & Time : 21st October 2002, 04:30(IST) ***
'================================================================
'================================================================
Private Sub Command1_Click()
'Command1.Enabled = False
Ssend = 1
Call sendsms(Text3.Text, Text2.Text, Text1.Text)
End Sub
Private Sub Command5_Click()
If SMS.CommPort <> Combo1.Text Then
If SMS.PortOpen = True Then SMS.PortOpen = False
SMS.CommPort = Combo1.Text
SMS.InputLen = 0
SMS.Settings = Combo2.Text
SMS.PortOpen = True
End If
Frame5.Visible = False
End Sub
Private Sub Command8_Click()
'Command8.Enabled = False
Ssend = 2
Call sendsms(Text3.Text, Text2.Text, Text1.Text)
End Sub
Private Sub Command2_Click()
Frame5.Visible = True
End Sub
Private Sub Command3_Click()
Frame6.Visible = True
End Sub
Private Sub Command4_Click()
Frame6.Visible = False
End Sub
Private Sub Command6_Click()
Frame5.Visible = False
End Sub
Private Sub Form_Load()
Dim h As Integer
SMSgrid.TextMatrix(0, 0) = "Status"
SMSgrid.TextMatrix(0, 1) = "Destination"
SMSgrid.TextMatrix(0, 2) = "Message"
SMSgrid.TextMatrix(0, 3) = "Type"
SMSgrid.ColWidth(0) = 800
SMSgrid.ColWidth(1) = 1200
SMSgrid.ColWidth(2) = 3900
SMSgrid.ColWidth(3) = 800
Frame6.Visible = False
Frame5.Visible = False
addcombo
GetPrefs
id = 0
Text2.Text = "136160610**"
Text1.Text = "SMS Messenger v1.0 by 138139.com." & vbCrLf & ">138139.com"
Label4.Caption = Len(Text1.Text) & "/160"
Command1.Enabled = False
Command8.Enabled = False
SMS.CommPort = Combo1.Text
SMS.InputLen = 0
SMS.Settings = Combo2.Text
SMS.PortOpen = True
SMS.Output = "AT+CPAS" & vbCrLf
End Sub
Private Sub Label3_Click()
SMS.PortOpen = False
SetPrefs
Unload Me
End Sub
Private Sub Option1_Click()
Label4.Caption = Len(Text1.Text) & "/160"
Text1.MaxLength = 160
End Sub
Private Sub Option2_Click()
Label4.Caption = Len(Text1.Text) & "/160"
Text1.MaxLength = 160
End Sub
Private Sub Option3_Click()
Label4.Caption = Len(Text1.Text) & "/70"
Text1.MaxLength = 70
End Sub
Private Sub Picture1_Click()
WindowState = 1
End Sub
Private Sub Text1_Change()
If Option3.Value <> True Then
B = 1
For B = 1 To Len(Text1.Text)
If Mid(Text1.Text, B, 1) = "|" Then D = "*"
Next B
If D = "*" Then
Option3.Value = True
Label4.Caption = Len(Text1.Text) & "/70"
Text1.MaxLength = 70
Else
Label4.Caption = Len(Text1.Text) & "/160"
Text1.MaxLength = 160
End If
Else
Label4.Caption = Len(Text1.Text) & "/70"
Text1.MaxLength = 70
End If
End Sub
Private Sub Timer1_Timer()
SMS.Output = "AT+CPAS" & vbCrLf
presp = SMS.Input
stat = findstr(presp, "+CPAS: 0")
connected (stat)
End Sub
Private Sub connected(id)
Select Case id
Case 1: Label12.Caption = "Connected."
Command1.Enabled = True
Command8.Enabled = True
Case Is <> 1: Label12.Caption = "Not Connected."
Command1.Enabled = False
Command8.Enabled = False
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -