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

Method post_connection

source/binding/Python/maa/controller.py:54–64  ·  view source on GitHub ↗

异步连接设备 / Asynchronously connect device 这是一个异步操作,会立即返回一个 Job 对象 This is an asynchronous operation that immediately returns a Job object Returns: Job: 作业对象,可通过 status/wait 查询状态 / Job object, can query status via status/wait

(self)

Source from the content-addressed store, hash-verified

52 Library.framework().MaaControllerDestroy(self._handle)
53
54 def post_connection(self) -> Job:
55 """异步连接设备 / Asynchronously connect device
56
57 这是一个异步操作,会立即返回一个 Job 对象
58 This is an asynchronous operation that immediately returns a Job object
59
60 Returns:
61 Job: 作业对象,可通过 status/wait 查询状态 / Job object, can query status via status/wait
62 """
63 ctrl_id = Library.framework().MaaControllerPostConnection(self._handle)
64 return self._gen_ctrl_job(ctrl_id)
65
66 def post_click(self, x: int, y: int, contact: int = 0, pressure: int = 1) -> Job:
67 """异步点击 / Asynchronously click

Callers

nothing calls this directly

Calls 2

_gen_ctrl_jobMethod · 0.95
frameworkMethod · 0.80

Tested by

no test coverage detected