How to find pictures in Autojs? Demo source code project example (with source code download)

The power of Autojs is that it can complete automatic hang-up processing through image recognition.

Many novice friends do not know how Autojs recognizes pictures. Today I will share with you a demo project source code, download and learn.

1. The source code is directly uploaded from the Autojs project and can be run directly.

2. Script running effect diagram display:

 3. Part of the source code display, please download the complete source code. After downloading, it can be compiled and run directly.

var img = images.read("./找图/大图.jpg");//在文件里面找到大图
var templ = images.read("./找图/小图.jpg");//在文件里面找小图
var p = findImage(img, templ);//在大图里面找小图
if (p) {
    toastLog("找到啦:" + p);

    click(p.x, p.y)

} else {
    toastLog("没找到");
}
//链接:https://pan.baidu.com/s/1xfnQBViCnYE4lRrscXN68Q?pwd=i9d7 
//提取码:i9d7 

4. After learning, you can transplant the function of finding pictures into your own code.

Guess you like

Origin blog.csdn.net/m0_55125030/article/details/131501323