'AutoKey: Activate window by className

i want activate windows by className using AutoKey

Example what i wont, but its dont find this Ubuntu Emoji Picker:

window.activate('ibus-ui-emojier-plasma.plasma.emojier')

my not perfect (because windows with this title could be everywhere sometimes) workaround is

window.wait_for_focus('Emoji Picker',1) 

if for example a website open with the name 'Emoji Picker' and the Ubuntu 'Emoji Picker' AutoKey find this website maybe (happens to me).

any idea?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source