- Aug
- 2,256
- 107
Hi,
I am using;
I am probably missing something simple, but am not having much success.
My goal is to allow the entry of a name, but also the ability to branch if the F4 key is used. Here is my test code;
When I run this, I can enter a name, but it does not conclude the entry if I press the F4 function key. All I get is a beep. The only way to conclude the entry is to press the Enter key.
How do I get it to recognize the F4 key? Again, I am probably missing something simple.
A side note: In the help for INPUT it shows;
Format: INPUT [/C /D /E["default"] /Ln /N /P /Wn /X] [prompt] %%varname
there is no mention of the /K option, even though it is described elsewhere in the help for INPUT. When I do an INPUT /? from the console, I get;
These are not consistent with each other.
Thanks from Joe
I am using;
Code:
TCC 13.03.36 Windows XP [Version 5.1.2600]
TCC Build 36 Windows XP Build 2600 Service Pack 3
I am probably missing something simple, but am not having much success.
My goal is to allow the entry of a name, but also the ability to branch if the F4 key is used. Here is my test code;
Code:
set thename=Hello
input /E /K"[a-z][F4]" /L5 Enter a name: %%thename
if %thename eq %@char[64 54 50] echo F4
When I run this, I can enter a name, but it does not conclude the entry if I press the F4 function key. All I get is a beep. The only way to conclude the entry is to press the Enter key.
How do I get it to recognize the F4 key? Again, I am probably missing something simple.
A side note: In the help for INPUT it shows;
Format: INPUT [/C /D /E["default"] /Ln /N /P /Wn /X] [prompt] %%varname
there is no mention of the /K option, even though it is described elsewhere in the help for INPUT. When I do an INPUT /? from the console, I get;
Code:
INPUT [/C /D /E /K"keys" /Ln /N /P /Wn /X] [prompt ] %%varname
These are not consistent with each other.
Thanks from Joe