自己放进脚本里吧,不要说怎么放也不会!
Opt('TrayAutoPause', 0)
Opt('TrayOnEventMode', 1)
TrayCreateItem('左WIN键禁用写入')
TrayItemSetOnEvent(-1, 'WriteREG')
Do
Sleep(90)
Until 0
Func WriteREG()
If MsgBox(36, '选择', '是否写入键左WIN键禁用设置?') = 6 Then
MsgBox(64,'提示', '准备写入...', 2)
RegWrite('HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlKeyboard Layout', 'Scancode Map', 'REG_BINARY', '0x00000000000000000200000000005BE000000000')
Else
MsgBox(64,'提示','键设置写入取消!', 2)
Exit
EndIf
If MsgBox(36, '选择', '是否注销以便使设置生效?') = 6 Then
MsgBox(64,'提示', '准备注销...', 2)
Shutdown(0)
Else
MsgBox(64,'提示','键设置于手动注销或重启后生效!', 2)
EndIf
EndFunc
|