启动指定程序 Start the specified program cmd: 命令 show_window: 是否显示窗口,默认显示 is_wait: 是否等待程序结束, 默认不等待 return: 成功返回True 失败返回 False cmd: command show_window: whether to display the window or not; it is displayed
(self, cmd: str, show_window=True, is_wait=False)
| 32 | return response |
| 33 | |
| 34 | def start_process(self, cmd: str, show_window=True, is_wait=False) -> bool: |
| 35 | """ |
| 36 | 启动指定程序 |
| 37 | Start the specified program |
| 38 | |
| 39 | cmd: 命令 |
| 40 | show_window: 是否显示窗口,默认显示 |
| 41 | is_wait: 是否等待程序结束, 默认不等待 |
| 42 | return: 成功返回True 失败返回 False |
| 43 | |
| 44 | cmd: command |
| 45 | show_window: whether to display the window or not; it is displayed by default |
| 46 | is_wait: whether to wait for the program to end; by default, it does not wait |
| 47 | return: Returns True successfully, and returns False if it fails |
| 48 | """ |
| 49 | return "true" in self.SendData("startProcess", cmd, show_window, is_wait) |
| 50 | |
| 51 | def execute_command(self, command: str, wait_timeout: int = 3) -> str: |
| 52 | """ |