⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 一个MODEM的短信软件
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Object = "{AEECEB18-1629-4D9E-AB2C-C11093920FC6}#1.0#0"; "SuperSMS.ocx"
Begin VB.Form q 
   Caption         =   "Saro-短信测试工具3.0   www.sangrong.com   0592-5932711 5932722"
   ClientHeight    =   6060
   ClientLeft      =   165
   ClientTop       =   555
   ClientWidth     =   9405
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   6060
   ScaleWidth      =   9405
   StartUpPosition =   3  'Windows Default
   Begin VB.Timer Timer1 
      Enabled         =   0   'False
      Interval        =   4000
      Left            =   3600
      Top             =   4440
   End
   Begin VB.TextBox Text10 
      Height          =   285
      Left            =   1320
      TabIndex        =   33
      Top             =   4560
      Width           =   735
   End
   Begin VB.CheckBox Check3 
      Caption         =   "自动发送"
      Height          =   255
      Left            =   120
      TabIndex        =   32
      Top             =   4560
      Width           =   1095
   End
   Begin VB.CheckBox Check2 
      Caption         =   "text接收"
      Height          =   255
      Left            =   3120
      TabIndex        =   31
      Top             =   1080
      Width           =   1095
   End
   Begin SMS.SuperSMS SuperSMS1 
      Left            =   4800
      Top             =   2760
      _ExtentX        =   900
      _ExtentY        =   900
      SMS_SLen        =   "8"
   End
   Begin VB.ComboBox Combo2 
      Height          =   315
      Left            =   6840
      TabIndex        =   30
      Text            =   "COM1"
      Top             =   480
      Width           =   975
   End
   Begin VB.TextBox Text9 
      Height          =   285
      Left            =   720
      TabIndex        =   28
      Text            =   "Text9"
      Top             =   3720
      Visible         =   0   'False
      Width           =   1095
   End
   Begin VB.CommandButton Command12 
      Caption         =   "查看日志"
      Height          =   375
      Left            =   5880
      TabIndex        =   27
      Top             =   960
      Width           =   855
   End
   Begin VB.CheckBox Check1 
      Caption         =   "不经过SIM卡接收"
      Height          =   255
      Left            =   1320
      TabIndex        =   26
      Top             =   1080
      Width           =   1695
   End
   Begin VB.ComboBox Combo1 
      Height          =   315
      Left            =   8160
      TabIndex        =   25
      Text            =   "Combo1"
      Top             =   480
      Width           =   1215
   End
   Begin VB.CommandButton Command11 
      Caption         =   "短信位置"
      Height          =   375
      Left            =   3000
      TabIndex        =   23
      Top             =   5520
      Width           =   1095
   End
   Begin VB.CommandButton Command10 
      Caption         =   "查看已发送"
      Height          =   375
      Left            =   6960
      TabIndex        =   22
      Top             =   5640
      Width           =   1095
   End
   Begin VB.CommandButton Command9 
      Caption         =   "接收已读短信"
      Height          =   375
      Left            =   5640
      TabIndex        =   21
      Top             =   5640
      Width           =   1215
   End
   Begin VB.TextBox Text8 
      Height          =   1575
      Left            =   6360
      TabIndex        =   20
      Top             =   1920
      Visible         =   0   'False
      Width           =   1095
   End
   Begin VB.CommandButton Command8 
      Caption         =   "关闭串口"
      Height          =   375
      Left            =   6840
      TabIndex        =   19
      Top             =   960
      Width           =   855
   End
   Begin VB.CommandButton Command7 
      Caption         =   "删除此条:"
      Height          =   375
      Left            =   120
      TabIndex        =   17
      Top             =   5520
      Width           =   1095
   End
   Begin VB.TextBox Text7 
      Height          =   375
      Left            =   1320
      TabIndex        =   16
      Top             =   5520
      Width           =   375
   End
   Begin VB.CommandButton Command6 
      Caption         =   "所有短信"
      Height          =   375
      Left            =   8160
      TabIndex        =   15
      Top             =   5640
      Width           =   1215
   End
   Begin VB.CommandButton Command5 
      Caption         =   "清  空"
      Height          =   375
      Left            =   7800
      TabIndex        =   14
      Top             =   960
      Width           =   735
   End
   Begin VB.TextBox Text6 
      Height          =   285
      Left            =   3120
      TabIndex        =   13
      Top             =   2880
      Visible         =   0   'False
      Width           =   855
   End
   Begin VB.TextBox Text5 
      Height          =   975
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   12
      Top             =   2280
      Visible         =   0   'False
      Width           =   3975
   End
   Begin VB.CommandButton Command4 
      Caption         =   "接收未读短信"
      Height          =   375
      Left            =   4320
      TabIndex        =   11
      Top             =   5640
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退  出"
      Height          =   375
      Left            =   8640
      TabIndex        =   10
      Top             =   960
      Width           =   735
   End
   Begin VB.TextBox Text4 
      Height          =   4095
      Left            =   4320
      Locked          =   -1  'True
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   8
      Text            =   "Form1.frx":030A
      Top             =   1440
      Width           =   5055
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   1680
      Top             =   2280
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   -1  'True
      InBufferSize    =   30240
      BaudRate        =   57600
      InputMode       =   1
   End
   Begin VB.CommandButton Command2 
      Caption         =   "PDU发送"
      Height          =   375
      Left            =   3000
      TabIndex        =   7
      Top             =   5040
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "test发送"
      Height          =   375
      Left            =   120
      TabIndex        =   6
      Top             =   5040
      Width           =   1095
   End
   Begin VB.TextBox Text3 
      Height          =   2895
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   2  'Vertical
      TabIndex        =   5
      Top             =   1440
      Width           =   3975
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   120
      TabIndex        =   3
      Text            =   "8613850039334"
      Top             =   480
      Width           =   3975
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   4320
      TabIndex        =   1
      Text            =   "+8613800592500"
      Top             =   480
      Width           =   2175
   End
   Begin VB.Label Label8 
      Caption         =   "秒/次(test发送)"
      Height          =   255
      Left            =   2160
      TabIndex        =   34
      Top             =   4560
      Width           =   1335
   End
   Begin VB.Label Label7 
      Caption         =   "选择串口:"
      Height          =   255
      Left            =   6840
      TabIndex        =   29
      Top             =   120
      Width           =   975
   End
   Begin VB.Line Line1 
      X1              =   0
      X2              =   9360
      Y1              =   900
      Y2              =   900
   End
   Begin VB.Label Label6 
      Caption         =   "选择波特率:"
      Height          =   255
      Left            =   8160
      TabIndex        =   24
      Top             =   120
      Width           =   1095
   End
   Begin VB.Label Label5 
      Caption         =   "(删除前请查  看短信位置)"
      Height          =   375
      Left            =   1680
      TabIndex        =   18
      Top             =   5520
      Width           =   1215
   End
   Begin VB.Label Label4 
      Caption         =   "接收内容:"
      Height          =   255
      Left            =   4560
      TabIndex        =   9
      Top             =   1080
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "发送内容:"
      Height          =   255
      Left            =   120
      TabIndex        =   4
      Top             =   1080
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "被叫手机号码(若群发,请用"",""分隔开):"
      Height          =   255
      Left            =   120
      TabIndex        =   2
      Top             =   120
      Width           =   4095
   End
   Begin VB.Label Label1 
      Caption         =   "短信中心号码(此项可选):"
      Height          =   255
      Left            =   4320
      TabIndex        =   0
      Top             =   120
      Width           =   2175
   End
End
Attribute VB_Name = "q"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit
Public inData As String '串口中断时读入的字符串
Dim P As String, D As String, T As String, TXT As String, E As Integer



Private Sub Check1_Click()
Dim ttstring As String
On Local Error Resume Next

CloseOnComm
If Check1.Value Then
  
  Check1.Enabled = False
  
  MSComm1.Output = "at+csms=1" & Chr(13) & Chr(10)
  Sleep (600)
  MSComm1.Output = "at+cnmi=2,2,0,0,1" & Chr(13) & Chr(10)
  Sleep (600)
  MSComm1.Output = "at&w" & Chr(13) & Chr(10)
  Check1.Enabled = True
  Sleep (500)
  ttstring = MSComm1.Input
Else
  Check1.Enabled = False
  MSComm1.Output = "at+cnmi=1,1,0,0,1" & Chr(13) & Chr(10)
  Sleep (600)
  Check1.Enabled = True
  ttstring = MSComm1.Input
End If
OpenOnComm
End Sub





Private Sub Check2_Click()
CloseOnComm
If Check2.Value Then
   MSComm1.Output = "at+cmgf=1" & vbCrLf
   
Else

  MSComm1.Output = "at+cmgf=0" & vbCrLf
  
End If
OpenOnComm
End Sub

Private Sub Check3_Click()
If Check3.Value Then
  Timer1.Enabled = True
  Command2.Enabled = False
Else
  Timer1.Enabled = False
  Command2.Enabled = True

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -