Hi,
I need the script to find 3 image on the desktop... if he does not find all 3, he will still send a mouse click.
(When he finds all 3, he makes a sound announcement)
I created a script for only one image search but I do not know how to create it for three images.
Please help me.
three ImageSearch Topic is solved
Re: three ImageSearch Topic is solved
Code: Select all
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
if (MyImageSearch(0, 798, 112, 918, "test1.png") and MyImageSearch(57, 995, 177, 1115, "test2.png") and MyImageSearch(0, 1003, 109, 1123, "test3.png"))
SoundPlay, *48
else
Click, 0, 0
MyImageSearch(X1, Y1, X2, Y2, ImageFile)
{
ImageSearch,,, X1, Y1, X2, Y2, %ImageFile%
if (ErrorLevel = 0)
return true
return false
}
HTH
Re: three ImageSearch
Thank you very much! Work me
Who is online
Users browsing this forum: hugojans, Pumpk11nnn and 59 guests