Clicking on multiple animated gifs - each are slightly different

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
simonk
Posts: 7
Joined: 06 May 2016, 23:11

Clicking on multiple animated gifs - each are slightly different

17 Jul 2018, 16:07

Hi,

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
ty!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: makdc96, RandomBoy, Rohwedder and 175 guests