Page 1 of 1

Shortcut working only in specific app

Posted: 25 Feb 2021, 11:01
by faustoart
Hi, first of all, thank you for the program, it's great
I have a question. I'm trying to have this code working:

Aplicacion = getActiveWindow()

if Aplicacion = Blender

HIDMacros.SendKeys "m"

end

What I want is to check the name of the window (or the aplication), so I can have different shortcuts for different applications. But I can't get it working.
Thanks in advance!

Re: Shortcut working only in specific app

Posted: 26 Feb 2021, 09:50
by admin
I don't remember if there's direct support in hidmacros to get active window title, I would say not.
So your script can't be that easy.
You can check this post for some inspiration: http://hidmacros.eu/forum/viewtopic.php ... vate#p5046