i use a AutoKey (autokey-gtk 0.95.10) script with the shortcut ü
it get errors with:
winTitle = window.get_active_title()
winClass = window.get_active_class()
if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis':
keyboard.send_keys("ü")
but not with shorter Version:
winTitle = window.get_active_title()
if winTitle != "0 A.D.":
keyboard.send_keys("ü")
got Errors and the CPU is really high at 7%:
If i run this AutoKey (autokey-gtk 0.95.10) script again it show no errors but does nothing. CPU still high and i need to shutdown it (no normal exit).
i don't understand why this happens. BTW as workaround its good enough for me to check only the window name. The better solution should check for class and window name.