本帖最后由 jackass110 于 2010-1-29 01:08 编辑
网吧系统,装完万象后出现如按m键执行的是win+m,做了这个屏蔽的工具,但是网吧有还原,取消还原的话比较麻烦,请教高人有没有办法不重启而即时生效,
另希望帮忙减下代码。。
不胜感激#include <ACN_MISC.au3>
If $CmdLine[0] = 0 Then
MsgBox(0, "", "请加参数运行")
ElseIf $CmdLine[1] = "/off" Then
disablewin()
ElseIf $CmdLine[1] = "/on" Then
Enablewin()
EndIf
Func Enablewin()
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout", "Scancode Map", "REG_BINARY", "0x00000000000000000300000000005be000005ce000000000")
_RefreshIcon()
EndFunc ;==>Enablewin
Func disablewin()
RegDelete("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout", "Scancode Map")
_RefreshIcon()
EndFunc ;==>disablewin
测试 _RefreshIcon() 无效 |