CUIT脚本在非管理员模式下不起作用 [英] CUIT Script Doesn't work in Non Admin mode

查看:175
本文介绍了CUIT脚本在非管理员模式下不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用升级权限使用CUIT刻录机录制脚本,但是当我使用Visual Studio播放时(没有提升权限)。

以下消息失败。

I tried recording a script using CUIT recorder using elevated privileges but when I playback using Visual Studio (without elevated permissions ).
It failed with below message.

================================ =============================================

=============================================================================

================= ================================================== ==========

=============================================================================

当我通过"以管理员身份运行"打开我的Visual Studio时脚本运行正常。

When I open my Visual Studio by "Run as administrator" the script is running fine.

当我尝试获取 AutionElement.FromPoint()时,我甚至发现了这种行为,我在下面看到异常。

I even observed this behavior when I tried getting AutionElement.FromPoint(), I see below exception.

============================================= ===========================
$

========================================================================

================================= ===========================================

============================================================================

请告诉我实际问题是什么?




Please let me know what is the actual issue?


推荐答案

嗨Abhilash,

Hi Abhilash,

播放无法找到给定的控件搜索属性。其他详细信息: 

技术名称: 'UIA'

FrameworkId: 'Wpf'

ControlType: '文字'

名称: '输入用户名'

在回放期间,问题似乎发生在此部分,如上所示。 您可以运行WPF应用吗?同样的操作,例如您的测试代码没有管理员权限? 

It seems that the issue happens at this section during playing back, as shown above. Can you run the WPF app with the same operation like your test code does without Admin permission? 

如果操作需要通过管理员模式进行,那么它就不会以上情况令人惊讶。

If the operation need to be done by Admin mode then it wouldn't be surprising that above happens.

祝你好运,

Fletch

  

  


这篇关于CUIT脚本在非管理员模式下不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆