feat.新增了截图和点击的外部接口(C层接口)

This commit is contained in:
MistEO
2022-01-17 15:48:00 +08:00
parent 4f314c6298
commit 18a044f584
6 changed files with 72 additions and 7 deletions

View File

@@ -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)