Types text in the window that is in focus, using the virtual keyboard.
Command availability: IBM RPA SaaS and IBM RPA on premises
IBM RPA's proprietary script language has a syntax similar to other programming languages. The script syntax defines the command's syntax in the script file. You can work with this syntax in IBM RPA Studio's Script mode.
If your bot is interacting with an application, make sure the application's window is in focus before using a keyboard command. Use one of the following commands to put a window in focus:
The following table displays the list of input parameters available in this command. In the table, you can see the parameter name when working in IBM RPA Studio's Script mode and its Designer mode equivalent label.
|Designer mode label||Script mode name||Required||Accepted variable types||Description|
||Text that should be typed in the window in focus.|
The Launch and Attach Window command is used to open and attach the Notepad window to the context, so that the Type Text command can be used to type the text "IBM RPA Studio" in it.
defVar --name notepadWindow --type Window // Open Notepad via the directory path. launchWindow --executablepath "notepad.exe" notepadWindow=value // Type "IBM" in Notepad. typeText --text "IBM"
The window must have a text entry field so the text can be typed.