function is to implement the regional Fuzzy image search function script as follows:
function Main ()- The main function, the script will execute the function msleep ( a)-wait 2 seconds after the execution, the purpose is to prevent the touch Wizard to open the hint mask screen, but also in the settings to set the turn off the prompt function --click Function Apprun ("com.tencent.xin");--run, iOS bundle Idmsleep (+); X, y = Findimageinregionfuzzy ("/var/mobile/applications/bake.bmp", 60,0,0,128,100); --The parameter is the absolute path of the picture, please modify the picture path for you to upload if x ~=-1 and y ~=-1 then --if x and Y are unequal to 1, the description finds touchDown (0, x+5, y+5) --Finger Press position, because X and Y are the upper-left coordinates, in order to point the picture, X and Y are added 5 pixel offset touchUp (0)-- finger lift notifymessage ("yes") --Show Yes Else-- Otherwise, if notifymessage ("no") is not found- -shows no endend
Touch Wizard to achieve the image search function