keyboard - Batch menu with function keys -
Is it possible to use function keys as an option for the batch command input menu
F1 - app1 f2 - app2 f3 - app3
I do not think this standard windows It is possible with commands and console applications.
A third-party console application will be required which waits for a function key and sets an environment variable in which the strings "F1", "F2", ... or the key of the function key Code, or which extends from the main code of value 1, 2, ... or the function key that is assigned to environment variable ERRORLEVEL .
This type of device will be easy to code for example C , but my approach is a waste of time because keys 1, 2, 3 can also be used A batch file and no additional equipment are necessary.
@echo off cls echo echo to select the application to run with the proper key: echo echo 1 ... echo echo application 2 ... application echo echo 3 ... Exit the application Z echo echo to run any other key results without any application. Echo Setup / P "AppChoice = Your Choice:" If "% AppChoice%" == "1" Goto App1 If "% AppChoice%" == "2" Goto App2 if "% AppChoice%" == "3" Goto App3 Goto : EOF: App: APO encoding application X ... Goto: EOF: Launch app 2 buzzing app YU ... Goto: AOF: APP echo application launch Jade ... Goto: EOF
It does not really matter to the user if key F1, F2, F3 or 1, 2, 3 should be pressed.
Comments
Post a Comment