I'm looking for a way to click on animated/moving pictures that the backgrounds are different, but the animated part is the same color but slightly transparent.
I've tried doing a looping imagesearch here https://autohotkey.com/board/topic/7496 ... ted-image/ but it doesn't always work because the animated part is transparent. Also, my script is a loop and I don't know how to add 2 loops into my code.
Current code;
Code: Select all
#SingleInstance
SetDefaultMouseSpeed 0
^p::
loop {
{
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight, play.png
Sleep 100
Click, %FoundX%, %FoundY%
Sleep 3000
}
//// NEED TO SEARCH FOR ANIMATED GIFS HERE \\\\
{
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight, trade.png
Sleep 1000
Click, %FoundX%, %FoundY%
Sleep 1000
}
{
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight, challenge.png
Sleep 100
Click, %FoundX%, %FoundY%
Sleep 3000
}
{
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight, doubleup.png
Sleep 100
Click, %FoundX%, %FoundY%
Sleep 100
Click, %FoundX%, %FoundY%
}
{
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight, failure.png
Sleep 100
Click, %FoundX%, %FoundY%
Sleep 100
}
}
sleep 200
return
^t::exitapp