MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / FindStrFastEx

Method FindStrFastEx

src/pkgDm/Dm2Java.java:2055–2057  ·  view source on GitHub ↗

在屏幕范围(x1,y1,x2,y2)内,查找string(可以是任意字符串的组合),并返回符合color_format的所有坐标位置,相似度sim同Ocr接口描述. @param x1 区域的左上X坐标 @param y1 区域的左上Y坐标 @param x2 区域的右下X坐标 @param y2 区域的右下Y坐标 @param string 待查找的字符串,可以是字符串组合,比如"长安|洛阳|大雁塔",中间用"|"来分割字符串 @param color_format 颜色格式串, 可以包含换行分隔符,语法是","后加分割字符串. 具体可以查看下面的示例 .注意,RGB和HSV格式都支持. @

(int x1,int y1,int x2,int y2,String string,String color_format,double sim)

Source from the content-addressed store, hash-verified

2053 * 比如"0,100,20|2,30,40" 表示找到了两个,第一个,对应的是序号为0的字符串,坐标是(100,20),第二个是序号为2的字符串,坐标(30,40)
2054 */
2055 public String FindStrFastEx(int x1,int y1,int x2,int y2,String string,String color_format,double sim){
2056 return Dispatch.call(dm,"FindStrFastEx",x1,y1,x2,y2,string,color_format,sim).getString();
2057 }
2058
2059 /**
2060 * 同FindStr,但是不使用SetDict设置的字库,而利用系统自带的字库,速度比FindStr稍慢.

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected