在屏幕范围(x1,y1,x2,y2)内,查找string(可以是任意个字符串的组合),并返回符合color_format的坐标位置
| 1263 | } |
| 1264 | // 在屏幕范围(x1,y1,x2,y2)内,查找string(可以是任意个字符串的组合),并返回符合color_format的坐标位置 |
| 1265 | STDMETHODIMP 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的所有坐标位置 |
| 1274 | STDMETHODIMP OpAutomation::FindStrEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR strs, BSTR color, DOUBLE sim, |
| 1275 | BSTR *retstr) { |