查找多个图片
| 839 | } |
| 840 | // 查找多个图片 |
| 841 | STDMETHODIMP OpAutomation::FindPicEx(LONG x1, LONG y1, LONG x2, LONG y2, BSTR files, BSTR delta_color, DOUBLE sim, |
| 842 | LONG dir, BSTR *retstr) { |
| 843 | wstring s; |
| 844 | obj.FindPicEx(x1, y1, x2, y2, files, delta_color, sim, dir, s); |
| 845 | |
| 846 | CComBSTR newstr; |
| 847 | HRESULT hr; |
| 848 | newstr.Append(s.data()); |
| 849 | hr = newstr.CopyTo(retstr); |
| 850 | return hr; |
| 851 | } |
| 852 | // 这个函数可以查找多个图片, 并且返回所有找到的图像的坐标.此函数同FindPicEx.只是返回值不同.(file1, x, y | file2, x, y | |
| 853 | // ...) |
| 854 | STDMETHODIMP OpAutomation::FindPicExS(LONG x1, LONG y1, LONG x2, LONG y2, BSTR files, BSTR delta_color, DOUBLE sim, |
no test coverage detected