Introduction - Functions Overview
With RoutineBot it is easy to automate entering of the text in
any text box. Pass to EnterKeys command any text
sting that you want to enter. Actually, you can click any key using
this command.
The most useful keys:
- EnterKeys('^v'); - will emulate the Control + V command, e.g.
paste text or picture from the clipboard.
- EnterKeys('~') - will emulate "enter" key.
- EnterKeys('%{PRTSC}'); - emulates Alt + PrintScreen key.
Other samples:
- EnterKeys('abc123DEF'); the command will enter in the text box
"abc123DEF"
Table of keys
The RoutineBot supports Visual Basic SendKeys syntax.
Modifies
- + = Shift
- ^ = Control - use ^v to emulate Control + V
- % = Alt
If group of the characters is surrounded with () then RoutineBot
will apply the modifier before this group to all characters.
Key name
Key name is a special string used to identify some system key on
the keyboard. When use the key name is the script text use {}
symbols. For instance: {PRTSC} for Print Screen key or %{PRTSC} for
Alt + PrintScreen key. If necessary, use the number of repeations
after the keyname, for example: {PRTSC 2} will press Print Screen
button twice. Find below the full list of the key names:
- BKSP, BACKSPACE
- BREAK
- CAPSLOCK
- CLEAR
- DEL
- DELETE
- DOWN
- END
- ENTER
- ESC
- ESCAPE
- F1
- F2
- F3
- F4
- F5
- F6
- F7
- F8
- F9
- F10
- F11
- F12
- F13
- F14
- F15
- F16
- HELP
- HOME
- INS
- LEFT
- NUMLOCK
- PGDN
- PGUP
- PRTSC
- RIGHT
- SCROLLLOCK
- TAB
- UP
"Windows" key
"Windows" key and
its combinations might useful. For example, "Windows" + M will show
the desktop. You cannot use it with "EnterKeys", here is how you
can click it:
KeyBrd(91,0);
KeyBrd(Ord('M'),0);
KeyBrd(91,1);
KeyBrd(Ord('M'),1);
|