Can KEYSTACK send Alt-1 (Alt-2 ...)?

May 20, 2008
10,684
83
Syracuse, NY, USA
Keystack can send them, but Windows will eat or translate most alt keys.
I dunno! I''ve been using Alt-1, Alt-2 , ... for a couple days. Windows gives them to TCC, and my key handler gets them ... not so when I try with KEYSTACK.

Example:

Issue
Code:
KEYSTACK /w180 Alt-1
and, within 10 seconds, open the OPTION\Keyboard tab and place the cursor in "New Shortcut Key" ... all I get is "Alt-".

In contrast, if I type Alt-1 while in that box, I get Alt-1.
 
May 20, 2008
10,684
83
Syracuse, NY, USA
The intent is to send Alt-1, Alt-2, ... to TCC itself. In a plugin keyhandler I switch between various console screen buffers via those keys. In a stand-alone console, real keystrokes work and KEYSTACK doesn't.
 
May 20, 2008
10,684
83
Syracuse, NY, USA
An Alt-1 does not send the Alt key + the 1 key; it sends the Alt Key + an ASCII value of 1. If you want to send a literal 1 - 9, you need to do something like:

Code:
keystack Alt-"1"

Or you could send:

Code:
keystack Alt-49
Thanks!