Post Reply 
Redefining Keys: Multiple Conundrua
02-23-2014, 03:55 AM
Post: #3
RE: Redefining Keys: Multiple Conundrua
You can extend the key definition to return the redefined command plus the keycode for the Enter key, which "activates" the string sent back. Using your example:

Code:
KEY K_Log()
 BEGIN
   RETURN "CSC(1)";
   RETURN(30);   // 30 is keycode for Enter (count them, starting with Apps=0)
 END;

I'm still experimenting, but it looks like you can build up a complex series of strings/or and keycodes and have pretty thorough control of what is sent back.

Tim/Cyrille - any practical limits on what can be returned?

Thanks for asking a good question prompting some fun research, and thanks to Han for a hint in an earlier post.

--Bob Prosperi
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Redefining Keys: Multiple Conundrua - rprosperi - 02-23-2014 03:55 AM



User(s) browsing this thread: 2 Guest(s)