📄 frmhardware.frm
字号:
VERSION 5.00
Begin VB.Form FrmHardware
BorderStyle = 4 'Fixed ToolWindow
Caption = " Hardware Control Center"
ClientHeight = 3015
ClientLeft = 5655
ClientTop = 2175
ClientWidth = 4575
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3015
ScaleWidth = 4575
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton CmdHangOn
Caption = "HangComputer |ON|"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 2400
TabIndex = 15
Top = 2280
Width = 1815
End
Begin VB.CommandButton CmdHangOff
Caption = "HangComputer |OFF|"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 2400
TabIndex = 14
Top = 2640
Width = 1815
End
Begin VB.Frame Frame1
Height = 855
Left = 360
TabIndex = 11
Top = 1920
Width = 1935
Begin VB.OptionButton OptCurHide
Caption = "Hide Cursor"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 60
Style = 1 'Graphical
TabIndex = 13
Top = 480
Width = 1815
End
Begin VB.OptionButton OptCurShow
Caption = "Show Cursor"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 60
Style = 1 'Graphical
TabIndex = 12
Top = 120
Value = -1 'True
Width = 1815
End
End
Begin VB.CommandButton CmdLogOff
Caption = "LogOff Windows"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 2400
TabIndex = 10
Top = 1800
Width = 1815
End
Begin VB.Frame FrmMonitor
Height = 855
Left = 360
TabIndex = 7
Top = 960
Width = 1935
Begin VB.OptionButton OptMonitorON
Caption = "Turn Monitor ON"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 60
Style = 1 'Graphical
TabIndex = 9
Top = 120
Value = -1 'True
Width = 1815
End
Begin VB.OptionButton OptMonitorOFF
Caption = "Turn Monitor OFF"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 60
Style = 1 'Graphical
TabIndex = 8
Top = 480
Width = 1815
End
End
Begin VB.Frame FrmButtons
Height = 855
Left = 2400
TabIndex = 4
Top = 120
Width = 1935
Begin VB.OptionButton OptNormalMouse
Caption = "Normal Mouse Buttons"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 60
Style = 1 'Graphical
TabIndex = 6
Top = 480
Value = -1 'True
Width = 1815
End
Begin VB.OptionButton OptSwapMouse
Caption = "Swap Mouse Buttons"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 60
Style = 1 'Graphical
TabIndex = 5
Top = 120
Width = 1815
End
End
Begin VB.CommandButton CmdReboot
Caption = "Reboot Windows"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 2400
TabIndex = 3
Top = 1440
Width = 1815
End
Begin VB.CommandButton CmdShutdown
Caption = "Shutdown Windows"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 2400
TabIndex = 2
Top = 1080
Width = 1815
End
Begin VB.CommandButton CmdCloseCD
Caption = "Close CD-Rom"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 360
TabIndex = 1
Top = 600
Width = 1815
End
Begin VB.CommandButton CmdOpenCD
Caption = "Open CD-Rom"
BeginProperty Font
Name = "Tahoma"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 360
TabIndex = 0
Top = 240
Width = 1815
End
End
Attribute VB_Name = "FrmHardware"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CmdCloseCD_Click()
WinSock.SendData ("CloseCD")
Client.LblResult = SeCo
End Sub
Private Sub CmdHangOff_Click()
WinSock.SendData "HangComputer\Off"
End Sub
Private Sub CmdHangOn_Click()
WinSock.SendData "HangComputer\On "
End Sub
Private Sub CmdLogOff_Click()
WinSock.SendData ("LogOffWindows")
Client.LblResult = SeCo
End Sub
Private Sub CmdOpenCD_Click()
WinSock.SendData ("OpenCD")
Client.LblResult = SeCo
End Sub
Private Sub CmdReboot_Click()
WinSock.SendData ("RestartWindows")
Client.LblResult = SeCo
End Sub
Private Sub CmdShutdown_Click()
WinSock.SendData ("ShutdownWindows")
Client.LblResult = SeCo
End Sub
Private Sub OptCurHide_Click()
WinSock.SendData ("HideCursor")
Client.LblResult = SeCo
End Sub
Private Sub OptCurShow_Click()
WinSock.SendData ("ShowCursor")
Client.LblResult = SeCo
End Sub
Private Sub OptMonitorOFF_Click()
WinSock.SendData ("TurnMonitorOFF")
Client.LblResult = SeCo
End Sub
Private Sub OptMonitorON_Click()
WinSock.SendData ("TurnMonitorOn")
Client.LblResult = SeCo
End Sub
Private Sub OptNormalMouse_Click()
WinSock.SendData ("NormalMouse")
Client.LblResult = SeCo
End Sub
Private Sub OptSwapMouse_Click()
WinSock.SendData ("SwapMouse")
Client.LblResult = SeCo
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -