How do I approach this (want tips before buliding, a keypressing thing)?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

I want to build a Function for users to be able to Choose some shortcut
combinations themselves.. for example, I provide the function they can
choose the combination of keys in some kind of userinteerface.

When clickign a little bit about this on keys I see that Having IF statments
with KeyCode and KeyData things I don't really understand how to Convert the
Value (I guess free text) the user chooses into something that will work in
an IF statment..

Any tips or thoughts on this?

/Lars Netzel
 
* "Lars Netzel said:
I want to build a Function for users to be able to Choose some shortcut
combinations themselves.. for example, I provide the function they can
choose the combination of keys in some kind of userinteerface.

When clickign a little bit about this on keys I see that Having IF statments
with KeyCode and KeyData things I don't really understand how to Convert the
Value (I guess free text) the user chooses into something that will work in
an IF statment..

Add a menu with a shortcut. Then hide the menu bar.
 
You have answered the same way on another thread I think...:)

No, I mean... how do I Convert the way the user CHOOSES what combination he
wants.. into the IF check in the KeyPress or KeyDown .. Since the Menu do
not support ALT keys and I need to use that..

I need the User to Type in for example "ALT + A" in text field or
something.. and then use that information in an IF check somehow... But the
Check needs to be dynamic since the User might as well have been Typeing in
"ALT + Z" instead..

Not many seems to do this in here... but you see it it many of the bigger
applications so there has to be a good way of doing this

/Lars
 
Back
Top