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

📄 form1.frm

📁 手机短信收发.rar ,用VB编写的手机发送.
💻 FRM
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Form1 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "vb手机短信群发"
   ClientHeight    =   5235
   ClientLeft      =   570
   ClientTop       =   4200
   ClientWidth     =   7920
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5235
   ScaleWidth      =   7920
   Begin VB.TextBox Text5 
      Height          =   435
      Left            =   3090
      TabIndex        =   13
      Text            =   "Text5"
      Top             =   3150
      Width           =   1725
   End
   Begin VB.TextBox Text4 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1125
      Left            =   2640
      MultiLine       =   -1  'True
      TabIndex        =   12
      Text            =   "Form1.frx":0000
      Top             =   1890
      Width           =   4905
   End
   Begin VB.CommandButton Command5 
      Caption         =   "信息内容"
      Height          =   525
      Left            =   2880
      TabIndex        =   11
      Top             =   4110
      Width           =   1245
   End
   Begin VB.TextBox Text3 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   315
      Left            =   450
      TabIndex        =   10
      Text            =   "13800772500"
      Top             =   3690
      Width           =   1575
   End
   Begin VB.Frame Frame4 
      Caption         =   "短信中心"
      Height          =   1545
      Left            =   300
      TabIndex        =   9
      Top             =   3390
      Width           =   2175
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00C00000&
      Height          =   345
      Left            =   420
      TabIndex        =   8
      Text            =   "13367826766"
      Top             =   600
      Width           =   1605
   End
   Begin VB.Frame Frame1 
      Height          =   5115
      Left            =   60
      TabIndex        =   0
      Top             =   30
      Width           =   7755
      Begin MSCommLib.MSComm MSComm1 
         Left            =   2220
         Top             =   4590
         _ExtentX        =   1005
         _ExtentY        =   1005
         _Version        =   393216
         DTREnable       =   -1  'True
      End
      Begin VB.CommandButton Command4 
         Caption         =   "关闭系统"
         Height          =   675
         Left            =   6000
         TabIndex        =   7
         Top             =   4020
         Width           =   1395
      End
      Begin VB.CommandButton Command3 
         Caption         =   "开始群发"
         Height          =   675
         Left            =   4290
         TabIndex        =   6
         Top             =   4020
         Width           =   1395
      End
      Begin VB.Frame Frame3 
         Caption         =   "要发送的信息"
         Height          =   1335
         Left            =   2520
         TabIndex        =   4
         Top             =   360
         Width           =   5025
         Begin VB.TextBox Text1 
            Height          =   915
            Left            =   90
            MultiLine       =   -1  'True
            TabIndex        =   5
            Text            =   "Form1.frx":0006
            Top             =   240
            Width           =   4875
         End
      End
      Begin VB.Frame Frame2 
         Caption         =   "号码管理"
         Height          =   2985
         Left            =   210
         TabIndex        =   1
         Top             =   270
         Width           =   2235
         Begin VB.CommandButton Command2 
            Caption         =   "清空"
            Height          =   525
            Left            =   1170
            TabIndex        =   3
            Top             =   2280
            Width           =   975
         End
         Begin VB.CommandButton Command1 
            Caption         =   "增加"
            Height          =   525
            Left            =   90
            TabIndex        =   2
            Top             =   2280
            Width           =   1005
         End
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    Dim aa As String
    aa = InputBox("请输手机号码", "手机号码录入")
    List1.AddItem aa
End Sub

Private Sub Command2_Click()
    List1.Clear
End Sub

Private Sub Command3_Click()

    If MSComm1.PortOpen = False Then MSComm1.PortOpen = True
    If Sendsms(Trim(Text3.Text), Trim(Text2.Text), Trim(Text1.Text)) Then
        MsgBox "信息发送完毕"
    Else
        MsgBox "发送失败"
    End If
    MSComm1.PortOpen = False
    
End Sub

Private Sub Command4_Click()
    If MSComm1.PortOpen = True Then MSComm1.PortOpen = False
    End
End Sub

Private Sub Command5_Click()
    Dim pdu, psmsc, pnum, pmsg As String
    Text4.Text = sms(Trim(Text3.Text), Trim(Text2.Text), Trim(Text1.Text))
    Text5.Text = Len(Trim(Text1.Text)) * 2 + 15
End Sub

Private Sub Form_Load()
    
    MSComm1.CommPort = 3
    
    
End Sub

⌨️ 快捷键说明

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