-
Notifications
You must be signed in to change notification settings - Fork 102
Type Key
ccfs edited this page Oct 1, 2023
·
4 revisions
Simulate keystrokes on TE window.
- Navigation keys, function keys and certain special characters should be enclosed in
{}
. The key names are not case-sensitive.
Key | Code |
---|---|
Backspace | {Backspace}, {BS} or {BKSP} |
Break | {Break} |
Caps Lock | {CapsLock} |
Del or Delete | {Del} or {Delete} |
Down Arrow ↓ | {Down} |
End | {End} |
Enter | {Enter} or ~ |
Esc | {Esc} |
Help | {Help} |
Home | {Home} |
Ins or Insert | {Ins} or {Insert} |
Left Arrow ← | {Left} |
Num Lock | {NumLock} |
Page Down | {PgDn} |
Page Up | {PgUp} |
Print Screen | {PrtSc} |
Right Arrow → | {Right} |
Scroll Lock | {ScrollLock} |
Tab | {Tab} |
Up Arrow ↑ | {Up} |
F1 to F16 | {F1} to {F16} |
^ + % ~ ( ) [ ] { } | {^} {+} {%} {~} {(} {)} {[} {]} {{} {}} |
- You can specify one or more modifier keys before a key.
Modifier key | Code |
---|---|
Ctrl | ^ |
Shift | + |
Alt | % |
- When a letter is used together with a modifier key, it should be lowercase.
- If several keys share the same modifier key, you can enclose the keys in
()
. - You can specify repeating keys in the form {Key Number}.
- Examples:
Key codes in Options | Resulting keystrokes |
---|---|
Readme |
Readme |
{F2}{End} |
F2 key then End key |
+%b |
Shift+Alt+B |
^{Left 4} |
Ctrl+Left Arrow 4 times |
^(cv) |
Ctrl+C then Ctrl+V |
- "Print Screen" {PrtSc} cannot capture anything. However any specified modifier key will still be simulated.
- Type Key does not work for "Edit" of Key add-on. Use this instead:
- Type: JScript / JavaScript
- Options: wsh.SendKeys("
key codes
");