📄 form1.frm
字号:
VERSION 5.00
Object = "{C1A8AF28-1257-101B-8FB0-0020AF039CA3}#1.1#0"; "MCI32.OCX"
Begin VB.Form Form1
Caption = "播放WAV"
ClientHeight = 1830
ClientLeft = 60
ClientTop = 345
ClientWidth = 3915
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 1830
ScaleWidth = 3915
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 345
Left = 960
TabIndex = 2
Top = 1305
Width = 1920
End
Begin VB.CommandButton Command1
Caption = "播放声音"
Height = 345
Left = 960
TabIndex = 1
Top = 810
Width = 1920
End
Begin MCI.MMControl mci1
Height = 360
Left = 195
TabIndex = 0
Top = 180
Width = 3510
_ExtentX = 6191
_ExtentY = 635
_Version = 393216
BorderStyle = 0
DeviceType = ""
FileName = ""
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()
mci1.Notify = False
mci1.Wait = True
mci1.Command = "stop"
mci1.Command = "close"
mci1.DeviceType = "waveaudio"
mci1.FileName = App.Path & "\py.wav"
mci1.Notify = False
mci1.Wait = True
mci1.Command = "open"
mci1.Notify = True
mci1.Wait = False
mci1.Command = "play"
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -