没有用户登录 Windows Server 2016 时的 GUI 应用程序自动化

编程入门 行业动态 更新时间:2024-10-25 04:15:50
本文介绍了没有用户登录 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 文件).我们已将所有代码封装在简单的控制台 应用程序中,并在任务调度程序中进行设置.

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 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

github/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 应用程序自动化

本文发布于:2023-11-07 01:02:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565129.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用户登录   应用程序   Windows   Server   GUI

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!