Disconnect from RDP Session#

Disconnecting from the current RDP session. The current session will be redirected to the console.

Purpose of the block: when working with visual scenarios, such as mouse and keyboard operations (for example, controlling the Google Chrome browser), closing the remote connection window will result in an error where the active session is lost and control elements cease to function. In other words, when the remote connection window is closed, the User is disconnected from RDP, and control of the mouse and keyboard becomes impossible.

When using the block, the active session is redirected to the console. The screen resolution is preserved, and control elements remain accessible. The RDP connection window itself will be closed. This can also be done using the Shift+F4 key combination after starting the Robot, and the combination can be changed in the Robot settings.

Desktop Width

[Number] Specifies the width of the desktop to which the console will connect.

If the value is empty, the current screen resolution will be used.

Desktop Height

[Number] Specifies the height of the desktop to which the console will connect.

If the value is empty, the current screen resolution will be used.

Error Handling Level

Select the error handling level. Possible values:

  • "Default" - by default;
  • "Ignore" - errors are ignored;
  • "Handle" - errors are handled.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Message Level

Select the message level that the blocks will output during operation. Possible values:

  • "Default" - by default;
  • "Release" - output is disabled;
  • "Debug" - main information output;
  • "Detailed" - detailed information output.

If "Default" is selected, the value from the "Start" block of this diagram will be used.

Error Text[Text] Returns detailed information about the error in case of incorrect execution of the block's work.