Sikulix/Jython UAC automation

匆匆过客 提交于 2019-11-30 21:29:22
Eugene S

The reason Sikuli doesn't work in this scenarios is because the UAC dialog is displayed in a "Secure desktop" which you can read more about here. Secure desktop prevents all interaction so even you attempt to take a screenshot of the UAC dialog itself, it will fail.

That being said, there is a workaround. You can disable switching to secure desktop by following these steps:

  1. Run gpedit.msc
  2. Under Computer Configuration\Windows Settings\Security Settings\Local Policies\SecurityOptions, change "User Account Control: Switch to the secure desktop when prompting for elevation" to disabled.
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!