mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 10:10:45 +08:00
feat.新增了截图和点击的外部接口(C层接口)
This commit is contained in:
@@ -463,6 +463,17 @@ void asst::Assistant::set_penguin_id(const std::string& id)
|
||||
else {
|
||||
opt.penguin_report.extra_param = "-H \"authorization: PenguinID " + id + "\"";
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<uchar> asst::Assistant::get_image() const
|
||||
{
|
||||
return Ctrler.get_image_encode();
|
||||
}
|
||||
|
||||
bool asst::Assistant::ctrler_click(int x, int y, bool block)
|
||||
{
|
||||
Ctrler.click_without_scale(Point(x, y), block);
|
||||
return true;
|
||||
}
|
||||
|
||||
bool asst::Assistant::start(bool block)
|
||||
|
||||
Reference in New Issue
Block a user