本帖最后由 lixiaolong 于 2011-3-10 13:30 编辑
回复 7# xyold1
变通一下,这里是关闭 NUMLOCK,你再打开NUMLOCK试试.
#include <Misc.au3>
AdlibRegister("_HotKeySet", 10)
Send('{NUMLOCK off}'); 关闭 NUMLOCK.
While 1
Sleep(10)
WEnd
Func _HotKeySet()
Local $Ctrl = _IsPressed("11")
Local $Shift = _IsPressed("10")
Local $Alt = _IsPressed("12")
Local $NumLeft = _IsPressed("25")
Local $NumUP = _IsPressed("26")
Local $NumRIGHT = _IsPressed("27")
Local $NumDOWN = _IsPressed("28")
If $Ctrl And $Shift And $NumLeft Then
MsgBox(0, '你同时按了以下键', 'Ctrl+Shift+NumLeft')
ElseIf $Ctrl And $Alt And $NumUP Then
MsgBox(0, '你同时按了以下键', 'Ctrl+Alt+NumUP')
ElseIf _IsPressed("27") Then
MsgBox(0, 0, 'RIGHT ARROW')
ElseIf _IsPressed("28") Then
MsgBox(0, 0, 'DOWN ARROW')
EndIf
EndFunc ;==>_HotKeySet
|