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
I tried FindClick framework from here as well
https://github.com/berban/FindClick
Code: Select all
MsgBox, % FindClick(fileName,"r dx oTransWhite,10")
Can it be, that images on an layer can´t be found ?
Thanks and greetings,
Wurzelseppi