这个你看看robot在注册表里面有没有类似SkipEnvironmentChecks的键值,把默认值改成1试试?以前QTP脚本是这么控制在锁屏情况下执行的,QTP是这么设置的
Start--->Run--> Type 'Regedit'
Change the following registry settings..
Goto following folder..
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest
Professional\MicTest
Locate the key "SkipEnvironmentChecks"
By Default the value will be "0"
Change the value to "1" and restart the QTP.
Now QTP will run with system locked.