利用vbs脚本全局屏蔽单个按键 vbs屏蔽键盘按键
人气:0想了解vbs屏蔽键盘按键的相关内容吗,在本文为您仔细讲解利用vbs脚本全局屏蔽单个按键的相关知识和一些Code实例,欢迎阅读和指正,我们先划重点:vbs,脚本全局,屏蔽按键,下面大家一起来学习吧。
复制代码 代码如下:
'code BY 伤脑筋 www.ntbak.cn www.qb5200.com
'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
加载全部内容