Keys supported by “EnterKeys” command in iTestBost

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
Posted in Articles
Tags: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Example: GUI test with RoutineBot

RoutineBot is testing GUI, trying to enter various values into the text fields and processing warning messages that tested program shows.

Gui Test Automation

GUI Testing TipsCheck out our GUI Test Automation tips.
Test Automation Step-by-Step
Learn more than 99% users know about test automation! Subscribe to maillist now! Learn how to create scripts that will do routine job for you.

Email: