没有用户登录 Windows Server 2016 时的 GUI 应用程序自动化 [英] GUI application automation when no user logged in windows server 2016

查看:51
本文介绍了没有用户登录 Windows Server 2016 时的 GUI 应用程序自动化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在同时托管我的 Web 应用程序的 Windows Server 2016(AWS) 上自动化 Rumba TN3270 7.2.

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

我已经编写了 VBA 脚本,它将在 Rumba 上进行自动化.要运行脚本,我必须打开 Rumba(.WDM 文件).我们已将所有代码封装在简单的控制台 .net 应用程序中,并在任务调度程序中进行设置.

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.

任务在我们登录时运行,但在用户注销时不运行.3 天后发现 GUI 应用程序在没有活动会话的情况下无法运行.

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.

无论如何都可以使用 RDP 或任何登录代理运行 GUI 自动化吗?

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

推荐答案

通过使用以下库解决了问题

Solved the issue by using the following library

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

我们将 exe 置于启动时,它将与服务器通信以进行自动化请求.

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

每当我们需要进行自动化时,我们只需使用上述库创建 RDP 会话.效果很好

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

这篇关于没有用户登录 Windows Server 2016 时的 GUI 应用程序自动化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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