1
使用VBScript检测触摸硬件
我正在寻找一种方法来使用VBScript检测已安装的触摸硬件。我的脚本不起作用。 此脚本旨在查找指针设备并相应地进行回显。 On Error Resume Next strComputer = "." WScript.Echo "==========================================" Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2") Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_PointingDevice") For Each objItem In colItems TouchDevice = objItem.PointingType if TouchDevice = 8 then Wscript.Echo "Found touch based hardware" WScript.Echo "==========================================" Else Wscript.Echo "No Touch …