www.pudn.com > 个人桌面射定.rar > Form1.frm


VERSION 5.00 
Begin VB.Form Form1  
   Caption         =   "快 方式" 
   ClientHeight    =   3750 
   ClientLeft      =   60 
   ClientTop       =   450 
   ClientWidth     =   5595 
   LinkTopic       =   "Form1" 
   ScaleHeight     =   3750 
   ScaleWidth      =   5595 
   StartUpPosition =   3  '窗口缺省 
   Begin VB.CommandButton Command16  
      Caption         =   "Command16" 
      Height          =   375 
      Left            =   4440 
      TabIndex        =   18 
      Top             =   240 
      Width           =   735 
   End 
   Begin VB.CommandButton Command14  
      Caption         =   "关闭光驱" 
      Height          =   495 
      Left            =   3120 
      TabIndex        =   17 
      Top             =   1560 
      Width           =   975 
   End 
   Begin VB.CommandButton Command13  
      Caption         =   "打开光驱" 
      Height          =   495 
      Left            =   2040 
      TabIndex        =   16 
      Top             =   1560 
      Width           =   855 
   End 
   Begin VB.CommandButton Command10  
      Caption         =   "添加" 
      Height          =   375 
      Left            =   3840 
      TabIndex        =   15 
      Top             =   2880 
      Width           =   615 
   End 
   Begin VB.CommandButton Command12  
      Caption         =   "cmd" 
      Height          =   495 
      Left            =   1080 
      TabIndex        =   12 
      Top             =   1560 
      Width           =   735 
   End 
   Begin VB.CommandButton Command11  
      Caption         =   "浏览" 
      Height          =   375 
      Left            =   3120 
      TabIndex        =   11 
      Top             =   2880 
      Width           =   615 
   End 
   Begin VB.TextBox Text2  
      Height          =   375 
      Left            =   960 
      TabIndex        =   10 
      Top             =   2880 
      Width           =   2055 
   End 
   Begin VB.TextBox Text1  
      Height          =   375 
      Left            =   120 
      TabIndex        =   9 
      Top             =   2880 
      Width           =   735 
   End 
   Begin VB.CommandButton Command9  
      Caption         =   "mediaplay" 
      Height          =   495 
      Left            =   3120 
      TabIndex        =   8 
      Top             =   120 
      Width           =   975 
   End 
   Begin VB.CommandButton Command8  
      Caption         =   "realplay" 
      Height          =   495 
      Left            =   2040 
      TabIndex        =   7 
      Top             =   120 
      Width           =   855 
   End 
   Begin VB.CommandButton Command4  
      Caption         =   "YAHOO通" 
      Height          =   495 
      Left            =   2040 
      TabIndex        =   6 
      Top             =   840 
      Width           =   855 
   End 
   Begin VB.CommandButton Command3  
      Caption         =   "qq" 
      Height          =   495 
      Left            =   3120 
      TabIndex        =   5 
      Top             =   840 
      Width           =   855 
   End 
   Begin VB.CommandButton Command7  
      Caption         =   "IE" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   4 
      Top             =   1560 
      Width           =   735 
   End 
   Begin VB.CommandButton Command6  
      Caption         =   "vc" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   3 
      Top             =   840 
      Width           =   735 
   End 
   Begin VB.CommandButton Command5  
      Caption         =   "vb" 
      Height          =   495 
      Left            =   120 
      TabIndex        =   2 
      Top             =   120 
      Width           =   735 
   End 
   Begin VB.CommandButton Command2  
      Caption         =   "cs" 
      Height          =   495 
      Left            =   1080 
      TabIndex        =   1 
      Top             =   120 
      Width           =   735 
   End 
   Begin VB.CommandButton Command1  
      Caption         =   "魔兽" 
      Height          =   495 
      Left            =   1080 
      TabIndex        =   0 
      Top             =   840 
      Width           =   735 
   End 
   Begin VB.Label Label2  
      Caption         =   "路径或命令" 
      Height          =   255 
      Left            =   1200 
      TabIndex        =   14 
      Top             =   2520 
      Width           =   1095 
   End 
   Begin VB.Label Label1  
      Caption         =   "名称" 
      Height          =   255 
      Left            =   240 
      TabIndex        =   13 
      Top             =   2520 
      Width           =   495 
   End 
End 
Attribute VB_Name = "Form1" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
 
Private Declare Function CDdoor Lib "winmm.dll" Alias "mciSendStringA" _ 
      ( _ 
      ByVal lpstrCommand As String, _ 
      ByVal lpstrReturnString As String, _ 
      ByVal uReturnLength As Long, _ 
      ByVal hwndCallback As Long _ 
      ) As Long 
 
 
Private Sub Command11_Click() 
 
Form2.Show 
End Sub 
 
Private Sub Command13_Click() 
Call CDdoor("set CDAudio door open", 0, 0, 0) 
End Sub 
 
Private Sub Command14_Click() 
Call CDdoor("set CDAudio door closed", 0, 0, 0) 
End Sub 
Private Sub Command1_Click() 
i = Shell("F:\网络游戏\Warcraft III\Frozen Throne.exe", 1) 
End Sub 
 
Private Sub Command12_Click() 
i = Shell("C:\WINDOWS\system32\cmd.exe", 1) 
End Sub 
Private Sub Command2_Click() 
i = Shell("G:\软件\游戏软件\cs\Counter-Strike\cstrike.exe", 1) 
End Sub 
 
Private Sub Command3_Click() 
i = Shell("C:\Program Files\Tencent\qq\CoralQQ.exe", 1) 
End Sub 
Private Sub Command4_Click() 
i = Shell("C:\Program Files\Yahoo!\Messenger\YPager.exe", 1) 
End Sub 
Private Sub Command5_Click() 
i = Shell("E:\visualbasic\VB98\VB6.EXE", 1) 
End Sub 
Private Sub Command6_Click() 
i = Shell("E:\visualbasic\common\MSDev98\Bin\MSDEV.EXE", 1) 
End Sub 
Private Sub Command7_Click() 
i = Shell("C:\Program Files\Internet Explorer\IEXPLORE.EXE", 1) 
End Sub 
Private Sub Command8_Click() 
i = Shell("C:\Program Files\Real\RealOne Player\realplay.exe", 1) 
End Sub 
Private Sub Command9_Click() 
i = Shell("C:\Program Files\Windows Media Player\wmplayer.exe", 1) 
End Sub 
Private Sub Text2_keypress(keyascii As Integer) 
On Error GoTo lujerror 
If keyascii = 13 Then 
i = Shell(Text2.Text, 1) 
Text2.Text = "" 
lujerror: 
End If 
End Sub