Sendkeys in remote minimized machine VBS

前端 未结 1 396
终归单人心
终归单人心 2021-01-22 20:45

I´m having problems with doing Shift + Enter in an object of SAP application.

This is the code I have:

If Dialog(\"SAP Logon 730\").WinListView(\"SysList         


        
相关标签:
1条回答
  • 2021-01-22 21:16

    If you minimise the Remote Desktop window (the window that displays the remote computer’s desktop), Windows switches the remote session to a GUI-less mode and doesn't display windows and controls. This means you can't interact with the desktop while the session is minimised and therefore your UFT/QTP script (that's what it looks like to me anyway) will fail.

    As a possible workaround, you can try the following steps:

    1. On your local computer, close all open Remote Desktop sessions.
    2. Launch the Registry editor (regedit.exe).
    3. Navigate to one of the following Registry keys, depending on whether you wish to modify the Remote Desktop settings only for the current user or for all users on the computer:

      HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client

      HKEY_LOCAL_MACHINE\Software\Microsoft\Terminal Server Client

    4. Create a DWORD value named RemoteDesktop_SuppressWhenMinimized and set it to 2.

    5. Close the Registry Editor.

    Now, when you minimise the remote session on your local desktop, the GUI availability on the remote machine should be unaffected and your test case should continue to run OK.

    Hope that helps...

    0 讨论(0)
提交回复
热议问题