MCPcopy Create free account
hub / github.com/WallBreaker2/op / FindStr

Method FindStr

libop/com/OpAutomation.cpp:1265–1272  ·  view source on GitHub ↗

在屏幕范围(x1,y1,x2,y2)内,查找string(可以是任意个字符串的组合),并返回符合color_format的坐标位置

Source from the content-addressed store, hash-verified

1263}
1264// 在屏幕范围(x1,y1,x2,y2)内,查找string(可以是任意个字符串的组合),并返回符合color_format的坐标位置
1265STDMETHODIMP OpAutomation::FindStr(LONG x1, LONG y1, LONG x2, LONG y2, BSTR strs, BSTR color, DOUBLE sim, VARIANT *retx,
1266 VARIANT *rety, LONG *ret) {
1267
1268 retx->vt = rety->vt = VT_INT;
1269 obj.FindStr(x1, y1, x2, y2, strs, color, sim, &retx->lVal, &rety->lVal, ret);
1270
1271 return S_OK;
1272}
1273// 返回符合color_format的所有坐标位置
1274STDMETHODIMP OpAutomation::FindStrEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR strs, BSTR color, DOUBLE sim,
1275 BSTR *retstr) {

Callers 1

OpFindStrFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected