MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / post_input_text

Method post_input_text

source/binding/Python/maa/controller.py:159–169  ·  view source on GitHub ↗

输入文本 / Input text Args: text: 要输入的文本 / Text to input Returns: Job: 作业对象 / Job object

(self, text: str)

Source from the content-addressed store, hash-verified

157 return self._gen_ctrl_job(ctrl_id)
158
159 def post_input_text(self, text: str) -> Job:
160 """输入文本 / Input text
161
162 Args:
163 text: 要输入的文本 / Text to input
164
165 Returns:
166 Job: 作业对象 / Job object
167 """
168 ctrl_id = Library.framework().MaaControllerPostInputText(self._handle, text.encode())
169 return self._gen_ctrl_job(ctrl_id)
170
171 def post_start_app(self, intent: str) -> Job:
172 """启动应用 / Start app

Callers

nothing calls this directly

Calls 2

_gen_ctrl_jobMethod · 0.95
frameworkMethod · 0.80

Tested by

no test coverage detected