Specific shortctuts for specific apps & ][ ssue

How can be this controlled in that simulator? Can HIDmacros be used with this application?
Post Reply
vasikgreif
Posts: 5
Joined: 13 Mar 2013, 13:30

Specific shortctuts for specific apps & ][ ssue

Post by vasikgreif » 13 Mar 2013, 16:42

Hi, is it possible to have different shortcuts for different apps? Would be cool to be able to switch between various video apps and have the shortcuts switched automatically.

I have one more problem: for some reason I'm unable to send "[" and "]" characters - they don't get written. Is there anything I'm missing?

Thanks

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

Re: Specific shortctuts for specific apps & ][ ssue

Post by admin » 13 Mar 2013, 23:45

No, this is currently not possible.
Maybe you could have this behavior using scripts, asking for active application/window name.

I have no problems to send [Text] to notepad (just tested)....
Petr Medek
LUAmacros author

vasikgreif
Posts: 5
Joined: 13 Mar 2013, 13:30

Re: Specific shortctuts for specific apps & ][ ssue

Post by vasikgreif » 14 Mar 2013, 15:01

Tested this now again - for some reason it works when I have my default keyboard layout (cs) selected, as soon as I switch to en layout (which I use all the time when editing videos in Adobe Premiere), it stops working. Any idea?

For the app switching, is there a way to save different shortcut profiles? I know I can create multiple profiles by renaming hidmacros.xml to somethng else, but that's not a comfortable way...

Thanks

P.S.: Funny to write in english instead of czech with you, keeping this in english for others to join..:-)

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

Re: Specific shortctuts for specific apps & ][ ssue

Post by admin » 15 Mar 2013, 08:46

"stops working" means all other text is sent except [ and ]?
I have Win7 64b home premium, en as default keyboard layout and cs as alternative layout. I was testing with en only, so I can try to switch to cs (and back).

I'll think of adding script command like LoadConfig(name_of_xml_file). It should be possible when I organize the code little bit...
Petr Medek
LUAmacros author

vasikgreif
Posts: 5
Joined: 13 Mar 2013, 13:30

Re: Specific shortctuts for specific apps & ][ ssue

Post by vasikgreif » 15 Mar 2013, 12:11

admin wrote:"stops working" means all other text is sent except [ and ]?
Exactly.
admin wrote:I'll think of adding script command like LoadConfig(name_of_xml_file). It should be possible when I organize the code little bit...
I think a "Select profile" button would be the most user friendly way.

Thanks

vasikgreif
Posts: 5
Joined: 13 Mar 2013, 13:30

Re: Specific shortctuts for specific apps & ][ ssue

Post by vasikgreif » 16 Mar 2013, 22:13

After more testing, it works fine when setting en keyboard as defaultne and having it selected. But, when I have en keyboard as default keyboard and cs lang selected, the output of [text] is útext)...

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

Re: Specific shortctuts for specific apps & ][ ssue

Post by admin » 17 Mar 2013, 21:46

I have the same results from my test. HIDmacros sends the keystrokes, but those are interpreted by keyboard driver (keyboard layout). So if you have keyboard sequence related to en keyboard and your active application uses cs keyboard, you get different characters - exactly as you have described. Similar situation e.g. for Caps lock - even you have lowercase sequence, you'll get captial letters if your caps lock is on.
Similar (interesting) behavior is on the input - if you have some letters swaped on en and cs keyboard (like y and z), it can happen you define trigger for z key in HIDmacros (en keyb) but it's activated by physically different key (y) if your application uses cs qwertz keyboard.
So yes, it's quite tricky... thinking what I can do, but have no idea now :-(
Petr Medek
LUAmacros author

vasikgreif
Posts: 5
Joined: 13 Mar 2013, 13:30

Re: Specific shortctuts for specific apps & ][ ssue

Post by vasikgreif » 18 Mar 2013, 00:26

Might it be possible to get an idea for how to solve this by checking how Autohotkey works? I've never had issues with keyboard layouts with AHK when sending keystrokes. Of course, with AHK it isn't possible to detect different keyboards...

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

Re: Specific shortctuts for specific apps & ][ ssue

Post by admin » 18 Mar 2013, 08:10

As AHK is open source it should be possible to find out.
But I have other things to code which are more important by my opinion:
- 64b plugin for Xplane (my personal needs :-)
- config switching we discussed
- "dead" keys in some keyboard layouts
So this one... maybe, not sure when.
Petr Medek
LUAmacros author

Post Reply