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

Method FindStrFastE

src/pkgDm/Dm2Java.java:2038–2040  ·  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格式都支持. @p

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

Source from the content-addressed store, hash-verified

2036 * @return 返回字符串序号以及X和Y坐标,形式如"id|x|y", 比如"0|100|200",没找到时,id和X以及Y均为-1,"-1|-1|-1"
2037 */
2038 public String FindStrFastE(int x1,int y1,int x2,int y2,String string,String color_format,double sim){
2039 return Dispatch.call(dm,"FindStrFastE",x1,y1,x2,y2,string,color_format,sim).getString();
2040 }
2041
2042 /**
2043 * 在屏幕范围(x1,y1,x2,y2)内,查找string(可以是任意字符串的组合),并返回符合color_format的所有坐标位置,相似度sim同Ocr接口描述.

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected