当我们与远程桌面断开连接时,我们可以设置桌面的分辨率吗?
我正在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.
If I log into this vm while, it is running (in the middle of the virtual session), I get the same window as below.
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论