From 0be5b48f5e614fbf72bfc5acbb50bed81df221bf Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Mon, 1 Mar 2021 16:20:03 +0300 Subject: [PATCH] Minor fix in Orchestrator CMDRun --- Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py b/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py index eab76dfd..803fc257 100644 --- a/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py +++ b/Sources/pyOpenRPA/Orchestrator/RobotRDPActive/Connector.py @@ -364,7 +364,7 @@ def SystemCMDRun(inSessionHexStr, inCMDCommandStr = "echo 1", inModeStr="CROSSCH if inModeStr == "CROSSCHECK" or inModeStr == "LISTEN": # Get OutStr (Case CROSSCHECK and LISTEN) lClipboardWaitTimeStartSec = time.time() lResult["OutStr"] = Clipboard.TextGet() # Get text from clipboard - while lResult["OutStr"] == f"{lClipboardTextOld} \r\n\x00\x00\x00\x00\x00" and (time.time() - lClipboardWaitTimeStartSec) <= inClipboardTimeoutSec: + while lResult["OutStr"].startswith(lClipboardTextOld) and (time.time() - lClipboardWaitTimeStartSec) <= inClipboardTimeoutSec: lResult["OutStr"] = Clipboard.TextGet() # Get text from clipboard time.sleep(0.5) # wait some time for the next operation if lResult["OutStr"] == lClipboardTextOld: # If value hasn't been changed - retry send