I am trying to find and click a hidden icon on the taskbar (shown by clicking the white triangle) in windows 7, using python. I've been trying to use pywinauto for this, but it doesn't seem to have the functionality to find and click one of these hidden icons. Even the taskbar module in pywinauto doesn't work (possibly due to being outdated). How can I do this?
The application I am trying to access for automation can only be shown by clicking on its hidden icon in the taskbar. By hidden icon, I mean in the notification area.
I've tried pywinauto.taskbar.SystemTrayIcons, but the DrawOutline method shows that this is the wrong area of the taskbar. And using taskbar.SystemTrayIcons.WrapperObject().Button(0) does not work anyway, but gives a GetButtonInfo failed exception.
I've also tried using SWAPY to create python code for finding and clicking the relevant buttons, and although it can click the button (helpfully named 'Button') to show the hidden icons, it does not show how to then click those icons.