MCPcopy Create free account
hub / github.com/a943512/PyAibote / get_script_params

Method get_script_params

PyAibote/AndroidBotModel/Control.py:139–154  ·  view source on GitHub ↗

获取脚本配置参数(等待用户提交控件数据) Get script configuration parameters (wait for the user to submit control data) return: 用户提交的控件数据 return: control data submitted by the user.

(self)

Source from the content-addressed store, hash-verified

137 return "true" in self.SendData("createWebView", _id, url, coordinate[0], coordinate[1], controlsize[0], controlsize[1])
138
139 def get_script_params(self) -> dict:
140 """
141 获取脚本配置参数(等待用户提交控件数据)
142 Get script configuration parameters (wait for the user to submit control data)
143
144 return: 用户提交的控件数据
145 return: control data submitted by the user.
146 """
147 response = self.SendData("getScriptParam")
148 if response == "null":
149 return None
150 try:
151 params = json.loads(response)
152 except Exception as e:
153 return {}
154 return params
155
156 def clear_script_widget(self) -> bool:
157 """

Callers

nothing calls this directly

Calls 1

SendDataMethod · 0.80

Tested by

no test coverage detected