From the original SynthMaker forum (2004–2014), with its members’ names and dates.
tester ·
How to add keyboard shortcut here, as a trigger paralel to mouse LDo (connected to trogs silent reset)? Whatever I'm connecting (in 1 unit for test), I'm getting triggers which reset the state to that unit. Or I'm missing something? I'd like to send trigger only when correct key is pressed.
DigitalWhiteByte ·
This one?
tester ·
Does not works correctly or we misunderstood. Can't click back on unit 1. What I mean is independent flow of switching buttons via mouse click (as it is) and additional independent flow of switching them with keyboard keys only.
DigitalWhiteByte ·
ok but what function serve the additional key pressed?
DigitalWhiteByte ·
maybe this?
tester ·
Ah... I see what you mean. What I'd like to get is a way of switching between numbered buttons via mouse click or using PC keyboard keys (like key "1" = click on unit 1, key "2" = click on unit 2, and so on; I assume that regular keys will work if cursor is not involved in editbox editing?) instead of mouse.
Total output sends value to gui multiplexer on which various panels are de/activated.
DigitalWhiteByte ·
you may make a further check, authorizing the key only if it is in current area,
otherwise the keys are always detected.
DigitalWhiteByte ·
This is another example,
I added a boolean to true for primitive GUI to enable mouse messages for movement on the area
tester ·
Either I do something wrong (by making the press key / shortcut like "CTRL+1") or we still don't understand somewhere. Exported exe does not works. It's about using either mouse OR pc keyboard to navigate the app. I'm trying to figure out how to build it.
DigitalWhiteByte ·
for assign othe key you must use the keycode
Keycode helper
try this one it work with key CTRL+1 shortcut
DigitalWhiteByte ·
Here is a list of more or less complete virtual keycode
MSDN List Virtual Keycode
tester ·
Thanks, I didn't know that.
I removed the mouseover part. Is there a way to de-conflictize shorcuts and editing routine? For example, I'd like to use numbered key "1" as a shortcut, but when I type number "1" in editbox - I would expect, that shortcuts are bypassed and editing goes uninterrupted. Can this be done too?
DigitalWhiteByte ·
the only way is the mouse area restriction
tester ·
There is an "is editing" boolean output in text edit. Could not this be used for turning on/off the shortcuts while editing?
DigitalWhiteByte ·
exactly, I opted for this option for the edit box,
but for other operations, unfortunately,
the most practical way is to restrict the detection of the action, only at the current area.
trogluddite ·
Just a quick additional note....
The name 'Is key Pressed' is very literal - it will always tell you if a key is held regardless of the usual "window focus" rules.
i.e....
- Ignores Window focus - if another Window is in front of plugin GUI, the plugin will still receive the keys. So your plugin will still see keypresses even if you are just typing into a completely unrelated text document.
- Does not "trap" keypresses - e.g. a Window beneath the plugin GUI can also see the keypresses, even if the plugin is the current focus.
There are VERY annoying - for example, when running in a VST host, it is impossible to prevent keypresses from activating the host shortcuts - resticting the choice of SM shortcuts to those not used by the host.
philter5 ·
yes thats indeed a problem. my workaround : use vKey combo´s ( 2 or more keys together) and set
a vKey that isn´t much used at all by the host program as first(conditional)keypress and then a vkey.you like as second
(additional)key.i use this technique in my current project, a standalone vKey-to-Midi Mapper.
to increase the number of possible combinations i added the function with the conditional/additional keypress,
so when " Print " key is set as first key and "E" as second, the combination will only work if you press (and hold!)
print first before pressing "E". pressing both keys at the same time or holding down "E" while pressing "PRINT"
will not work. you can look at my example here
or wait till i finish my vKey Module Collection the next days
( yes you´ve heard right : a LOT of the small, unflashy green modules you love 😍 like i do too hehehe )
of course the combination of 2 or more keys is just a workaround and the problem has to get fixed, best way
in my humble opinion would be to make it optional/let the user decide.
and on the wishlist, too : identify multiple connected PC Keyboards as independent devices !!! 😀
phil
tester ·
Okay, thanks for help and some clarifications.
Wrote something here? To have a post removed or your name hidden, write to [email protected].