|
|
@ -364,7 +364,7 @@ def SystemCMDRun(inSessionHexStr, inCMDCommandStr = "echo 1", inModeStr="CROSSCH
|
|
|
|
if inModeStr == "CROSSCHECK" or inModeStr == "LISTEN": # Get OutStr (Case CROSSCHECK and LISTEN)
|
|
|
|
if inModeStr == "CROSSCHECK" or inModeStr == "LISTEN": # Get OutStr (Case CROSSCHECK and LISTEN)
|
|
|
|
lClipboardWaitTimeStartSec = time.time()
|
|
|
|
lClipboardWaitTimeStartSec = time.time()
|
|
|
|
lResult["OutStr"] = Clipboard.TextGet() # Get text from clipboard
|
|
|
|
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
|
|
|
|
lResult["OutStr"] = Clipboard.TextGet() # Get text from clipboard
|
|
|
|
time.sleep(0.5) # wait some time for the next operation
|
|
|
|
time.sleep(0.5) # wait some time for the next operation
|
|
|
|
if lResult["OutStr"] == lClipboardTextOld: # If value hasn't been changed - retry send
|
|
|
|
if lResult["OutStr"] == lClipboardTextOld: # If value hasn't been changed - retry send
|
|
|
|