# Add RDPActive CMD Type

dev-linux
Ivan Maslov 5 years ago
parent 29853bd5bd
commit b3f8da1821

@ -134,3 +134,13 @@ def SessionScreen100x550(inSessionHex):
lRDPWindow.restore() lRDPWindow.restore()
lRDPWindow.move_window(10,10,550,100) lRDPWindow.move_window(10,10,550,100)
return None return None
import keyboard
import time
#Type command in CMD
def SessionCMDRun(inSessionHex,inCMDCommandStr):
SessionScreenFull(inSessionHex)
keyboard.press_and_release('win+r')
time.sleep(2)
keyboard.write(f"cmd {inCMDCommandStr}")
keyboard.press_and_release('enter')
SessionScreen100x550(inSessionHex)
Loading…
Cancel
Save