📄 key.txt
字号:
KEY [OS/2 ONLY]
NAME KEY - Put the arguments onto the keyboard buffer.
SYNTAX
key arguments | \scancode,charcode | \charcode
USAGE
Key is used to emulate a user. It puts the given
arguments onto the keyboard buffer. This is equivalent to
the situation, where a user had typed the same commands
from keyboard. You can specify the argumets using three
different syntaxes. If the argument does not start with a
backslash charater '\', key pushes characters from the
command line to the keyboard buffer treating them as
characters - e.g key dir, would push the word key to the
keyboard buffer.
If the argument starts with backslash and contains two
components separated with a comma- e.g 'key \0,13', key
sets the scancode to the first integer and character code
to the second integer. If the argument contains only one
integer, key sets the character code to that integer and
sets the scan code to 0. Both representations are needed,
because some entries that you can generate from the
keyboard don't have a character code at all. For example
pressing ALT-F1, would generate charactercode 0 and scan
code 104 from my keyboard.
If you want to have spaces in the string you play out,
you can put it inside double quotes. You can also use the
character code 32, but this is less clear. Putting out
spaces is normal in commands that consists of a command
and some arguments.
If you want to play out the backlash character as the
first character, you must use its character codeof 92.
You can use the KBD tool to see what scan code, characer
code pairs your keyboard generates.
EXAMPLES
E.g. 'Key dir \13' will output the files from the current
directory. 'Key "START /C dirserv" \13' will pay the
sequence START /C dirserv as a one command.
SEE ALSO
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -