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
iflen(lInputStr)<=259:
keyboard.write(lInputStr) # Write new text
keyboard.write(lInputStr, delay=0.05) # Write new text
else:
iflL: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. ")
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
iflen(lInputStr)<=259:
keyboard.write(lInputStr) # Write new text
keyboard.write(lInputStr, delay=0.05) # Write new text
else:
iflL: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. ")