我通过以下代码把鼠标限制了
Private Sub Command1_Click()
Dim r As RECT
r.Left = 300
r.Top = 300
r.Right = 500
r.Bottom = 500
ClipCursor r
End Sub Private Sub Command2_Click()
ClipCursor ByVal 0&
End Sub Private Sub Timer1_Timer()
Command1_Click
End Sub ''''模块
Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type Declare Function ClipCursor Lib "user32" (lpRect As Any) As Long
请问 如何锁定键盘?代码怎么写?
Private Sub Command1_Click()
Dim r As RECT
r.Left = 300
r.Top = 300
r.Right = 500
r.Bottom = 500
ClipCursor r
End Sub Private Sub Command2_Click()
ClipCursor ByVal 0&
End Sub Private Sub Timer1_Timer()
Command1_Click
End Sub ''''模块
Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type Declare Function ClipCursor Lib "user32" (lpRect As Any) As Long
请问 如何锁定键盘?代码怎么写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货