我尝试了很多在运行RDC Windows应用程序的地方,我尝试捕获细节。如何运行RDC Windows应用程序
像---->连接Myremotedesktop ---->运行在RDC的Windows应用程序,并输入值,以获得细节(例如,如果我进入rollnumber详细地址会) ---->捕获相关内容并将其存储在本地桌面上。
有什么办法可以使用c#代码自动化这个过程吗?
我可以连接远程桌面。 我试过UIAutomation和下面的代码为本地桌面做工精细:
System.Threading.Thread.Sleep(500);
AutomationElement rootElement = AutomationElement.RootElement;
Condition appCondition = new PropertyCondition(AutomationElement.NameProperty, "Untitled - Notepad");
Condition documentCondition = new PropertyCondition(AutomationElement.LocalizedControlTypeProperty, "document");
AutomationElement documentElement = rootElement.FindFirst(TreeScope.Subtree, documentCondition);
documentElement.SetFocus();
SendKeys.SendWait("This is a test of the emergency broadcast system.")
如何做remotedesktop同样的事情?
您是否正在控制在服务器上运行的程序,因为您可以对其进行更改吗?有些东西可以在服务器程序中更改以使其侦听数据命令,但是您需要编写程序来执行它。 –
我没有服务器控制... – Vichu
您可以在启动时运行的服务器上启动一个程序(通过启动菜单或通过rdp连接文件指定初始程序)? –