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
Specific shortctuts for specific apps & ][ ssue
Re: Specific shortctuts for specific apps & ][ ssue
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)....
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
LUAmacros author
-
- Posts: 5
- Joined: 13 Mar 2013, 13:30
Re: Specific shortctuts for specific apps & ][ ssue
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..
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..
Re: Specific shortctuts for specific apps & ][ ssue
"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...
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
LUAmacros author
-
- Posts: 5
- Joined: 13 Mar 2013, 13:30
Re: Specific shortctuts for specific apps & ][ ssue
Exactly.admin wrote:"stops working" means all other text is sent except [ and ]?
I think a "Select profile" button would be the most user friendly way.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...
Thanks
-
- Posts: 5
- Joined: 13 Mar 2013, 13:30
Re: Specific shortctuts for specific apps & ][ ssue
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)...
Re: Specific shortctuts for specific apps & ][ ssue
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
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
LUAmacros author
-
- Posts: 5
- Joined: 13 Mar 2013, 13:30
Re: Specific shortctuts for specific apps & ][ ssue
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...
Re: Specific shortctuts for specific apps & ][ ssue
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.
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
LUAmacros author