GUI application automation when no user logged in windows server 2016

梦想与她 提交于 2020-01-16 11:31:13

问题


I am trying to automate Rumba TN3270 7.2 on windows server 2016(AWS) where my web application is also hosted.

I have written the VBA script which will do the automation on Rumba. To run the script I have to open the Rumba (.WDM file). We have wrapped the all code in simple console .net app and set that in task scheduler.

The task runs when we logged in but it does not run when user logged off. After 3 days found that GUI application won't run without kind of active session.

Is there anyway to run GUI automation using RDP or any login agent?


回答1:


Solved the issue by using the following library

https://github.com/publee/FreeRDP-Sharp

We place the exe in startup which would communicate to server for automation request.

Whenever we need to do the automation we simply create the RDP session by using the above library. it works great



来源:https://stackoverflow.com/questions/59479033/gui-application-automation-when-no-user-logged-in-windows-server-2016

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!