RDP.SystemCMDRun - 4 fix with time lag

dev-linux
Ivan Maslov 3 years ago
parent 796b0b1224
commit 8c4ca98fc2

@ -369,6 +369,7 @@ def SystemCMDRun(inSessionHexStr, inCMDCommandStr = "echo 1", inModeStr="CROSSCH
Clipboard.TextSet(lClipboardTextOld) #
time.sleep(0.5) # wait some time for the next operation
keyboard.press_and_release('enter') # Execute CMD
time.sleep(1)
if lCommandIsTooBigBool == True:
# Case when string is tool big - call cmd and then type text into
#keyboard.write("cmd") # Open cmd

Loading…
Cancel
Save