110,536
社区成员
发帖
与我相关
我的任务
分享
set wmi=getobject ("winmgmts:root\cimv2")
for each device in wmi.execquery ("Select * from Win32_PointingDevice")
wscript.echo device.HardwareType
next
[DllImport("user32 ")]
public static extern bool LockWorkStation();
[DllImport("user32.dll")]
static extern void BlockInput(bool Block);
BlockInput(true);//锁定鼠标
BlockInput(false);//解除