From a3a4ca121b67e77ec4238ab7a80e90170f0dfe19 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Tue, 16 Mar 2021 12:45:58 +0300 Subject: [PATCH] #RDPCMDRun hotfix for some situations when RDP is freezed --- Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py b/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py index b7f62d41..1142344d 100644 --- a/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py +++ b/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py @@ -327,13 +327,13 @@ def SystemCMDRun(inSessionHexStr, inCMDCommandStr = "echo 1", inModeStr="CROSSCH time.sleep(gKeyboardHotkeyDelaySecFloat) # Wait for RUN window will appear ctrl+a+backspace is async - so we need some timeout... lInputStr = f"cmd /c ({inCMDCommandStr}) {lCMDPostFixStr}" # Generate the output string for RUN window if len(lInputStr) <= 259: - keyboard.write(lInputStr) # Write new text + keyboard.write(lInputStr, delay=0.05) # Write new text else: if lL: lL.warning( f"RDP.SystemCMDRun: ATTENTION! Your command is too big for the RUN window (len is {len(lInputStr)}). Orchestrator will send this command to the new cmd window. ") lInputStr = "cmd" lCommandIsTooBigBool = True - keyboard.write(lInputStr) # Write cmd + keyboard.write(lInputStr, delay=0.05) # Write cmd time.sleep(gKeyboardHotkeyDelaySecFloat) # Check if autocomplete # # # # # # #