【发布时间】:2021-10-25 04:52:48
【问题描述】:
我对编码还很陌生,想打开 CMD 在其中运行命令。
import autoit
import time
autoit.run("cmd.exe")
autoit.win_wait_active("[CLASS:Command]", 3)
autoit.control_send("[CLASS:Command]", "Edit1", "hello world{!}")
我只想加载 CMD 并在其中运行我选择的命令。
谢谢:)
【问题讨论】: