Can I access keys by their names
|
07-26-2016, 08:26 PM
(This post was last modified: 07-26-2016 08:47 PM by StephenG1CMZ.)
Post: #5
|
|||
|
|||
RE: Can I access keys by their names
(07-25-2016 11:41 PM)Tim Wessman Wrote: There is not any way to do this apart from numbers. The problem basically boils down to not wanting to create "nice names" for every possible variable option in the system. You'd probably be adding another 500 reserved words or so. When you said 4 is not equal to a string, I thought K ESC was a string. But MSGBOX(STRING(K_Esc,)) Doesn't work - which could have been useful if you wanted to say "Press Escape to Escape" but refer to the key name consistently: "Press "+K_Esc+" to Escape". As an alternative to having 50 Exports, I was considering having one Export - effectively a list. Whilst accessing a list would likely be less efficient than a constant, it minimises the number of exports, and also the list sequence associates a number with the key - which might be useful for the keys 0..9 0..F or A..Z. Code:
Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Can I access keys by their names - StephenG1CMZ - 07-24-2016, 07:06 PM
RE: Can I access keys by their names - Tim Wessman - 07-25-2016, 11:41 PM
RE: Can I access keys by their names - Tyann - 07-26-2016, 05:12 AM
RE: Can I access keys by their names - Martin Hepperle - 07-26-2016, 08:27 AM
RE: Can I access keys by their names - StephenG1CMZ - 07-26-2016 08:26 PM
RE: Can I access keys by their names - Tim Wessman - 07-26-2016, 08:39 PM
RE: Can I access keys by their names - toml_12953 - 08-19-2016, 03:36 PM
RE: Can I access keys by their names - StephenG1CMZ - 07-26-2016, 09:56 PM
RE: Can I access keys by their names - StephenG1CMZ - 08-12-2016, 06:33 PM
RE: Can I access keys by their names - Fortin - 08-19-2016, 02:57 PM
RE: Can I access keys by their names - StephenG1CMZ - 08-26-2016, 06:19 PM
|
User(s) browsing this thread: 1 Guest(s)