当我们与远程桌面断开连接时,我们可以设置桌面的分辨率吗?

发布于 2025-02-08 10:58:44 字数 1058 浏览 0 评论 0原文

我正在Windows VM上运行SAP GUI脚本自动化。当我与远程桌面断开连接时,我在批处理文件上的命令,断开连接并保留当前用户的虚拟会话。

for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)

早些时候,该分辨率不是我执行的GUI脚本的问题。但是这一次,当我在登录机器时执行脚本时,在全屏模式下启动的SAP登录屏幕和其余的SAP窗口以匹配我的笔记本电脑的屏幕尺寸。但是,当我执行上面的批处理文件时,屏幕区域会较小,并且脚本无法在可见区域下方找到元素,因为它需要向下滚动。

这是在超时期间捕获的屏幕快照。

如果我登录此VM时,它正在运行(在虚拟会话的中间),我将获得与下面相同的窗口。

但是,如果我在登录机器时运行此操作,则它将启动全屏。我正在使用 SAP客户端770

我无权更改屏幕分辨率。有什么办法可以解决此问题?

I am running SAP GUI script automation on a Windows VM. When I am disconnecting from the remote desktop, I am running below command on a batch file, to disconnect and keep a virtual session of the current user.

for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
%windir%\System32\tscon.exe %%s /dest:console
)

Earlier the resolution was not an issue for the GUI scripts I executed. But this time, when I execute the script while logged into the machine, the SAP login screen and the rest of the SAP windows launched on full-screen mode, to match the screen size of my laptop. But, when I execute the above batch file, the screen area gets small and the script is unable to find the element below the visible area, as it needs to scroll down.

This is a screenshot captured during a timeout.

enter image description here

If I log into this vm while, it is running (in the middle of the virtual session), I get the same window as below.

enter image description here

But, if I run this while logged into the machine, it just gets launched full screen. I am using SAP client 770.

I don't have permission to change to screen resolution. Is there any way I can fix this issue?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文