请问是 用VB6吗 ?
如果是VB6的话 我只会热键开关,在游戏中也可以用
程式码如下
复制程式
' 在表单拉出1个Timer1
' 把Timer1的Enabled用成False
Option Explicit
Private Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer
Private Sub Form_Load()
App.TaskVisible = False
Timer1.Interval = 100
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
If GetKeyState(vbKeyF2) < 0 Then Me.Hide
If GetKeyState(vbKeyF3) < 0 Then Me.Show
End Sub