简体   繁体   English

C#中的UI自动化,无需使用鼠标

[英]UI Automation in C# without using mouse possible

So, I am trying to use UI Automation(Specically White library) to simpulate multiple automations at the same time. 因此,我试图使用UI自动化(特别是白色库)来同时简化多个自动化。 I would not like my mouse to be taken over. 我不希望我的鼠标被接管。 Is there anyway to do this? 反正有这样做吗? Basically, I want an instance of my UI Automation to use a virtual mouse specifically for that program, instead of my main mouse. 基本上,我希望我的UI Automation实例使用专门用于该程序的虚拟鼠标,而不是主鼠标。

Not really clear on what you mean. 不清楚您的意思。 The White library uses UI Automation elements to interact with desktop applications. White库使用UI Automation元素与桌面应用程序进行交互。 Once you capture the element you can send any sort of command to it you like such as click and it won't actually use your existing mouse to click on it. 捕获元素后,您可以向其发送各种命令,例如单击,并且实际上不会使用现有的鼠标对其进行单击。 Sounds like you are automating your mouse instead of automating the application. 听起来您是在自动化鼠标,而不是在自动化应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM