Find Image on an text layer of teams-client

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Wurzelseppi
Posts: 3
Joined: 14 Feb 2017, 06:39

Find Image on an text layer of teams-client

Post by Wurzelseppi » 17 Jan 2022, 08:47

Hi all,

I´m trying to find an image on an layer of Teams Client (right click on chat -> layer menu appears -> click on a specific button there, which I want to specify by an image from an screenshot)
It works to get the pos above the first chat

ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth,A_ScreenHeight, %A_ScriptDir%\Zuletzt_Button.png

(that returns the position of the recent label in the client. From this position I click the area with x+40 y+40 with right mouse and the layer with chat options appears)

On that layer I want to find the "Ausblenden -> Hide" Button and click it.
Unfortunately the layer menu is dynamic, so I can´t use keyboard as the menu item is not on a fixed position.

I tried it first like that:

Code: Select all

ImageSearch, AusbX, AusbY, baseX , baseY, baseX+400, baseY+400, %A_ScriptDir%\Ausblenden.gif
but the icon can´t be found

I tried FindClick framework from here as well
https://github.com/berban/FindClick

Code: Select all

MsgBox, % FindClick(fileName,"r dx oTransWhite,10")
But it didn´t help.

Can it be, that images on an layer can´t be found ?


Thanks and greetings,

Wurzelseppi

Return to “Ask for Help (v1)”