Shortcut working only in specific app

How can be this controlled in that simulator? Can HIDmacros be used with this application?
Post Reply
faustoart
Posts: 1
Joined: 25 Feb 2021, 10:56

Shortcut working only in specific app

Post by faustoart » 25 Feb 2021, 11:01

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!

admin
Site Admin
Posts: 735
Joined: 01 Nov 2010, 13:00
Location: Prague, Czech republic
Contact:

Re: Shortcut working only in specific app

Post by admin » 26 Feb 2021, 09:50

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
Petr Medek
LUAmacros author

Post Reply