Key Sequence Task
A Key Sequence Task allows you to send a sequence of key strokes (like a recorded keyboard macro) to one or more active connections. Royal TS will simulate keyboard input as it would be typed on your computer. This is a great way to automate repetitive tasks or execute the same command on multiple sessions at once.
Dashboard
The Task Dashboard is shown in the Dashboard panel when you select a Command Task in the Navigation panel.
Assignments
- The grid on the top shows connections or folders which are configured to use the selected task as Connect, Disconnect or Key Sequence Task
- You can also select one or more objects in the Assignments list and perform various edit commands.
Task Context
- The Task Context list shows all connections available as task context. Connections which are currently selected as task context are shown selected in the list and appear at the top of the list.
- Changing the selection in the list will change the task context.
- Click on Execute to start the selected task for the selected task context.
Note
Key sequence tasks can only be executed on active connections, therefore the task context for those tasks will only show active connections. Do not interfere in any way (switching to other connections, applications, pressing any keys, etc.) during key sequence task execution. The status bar will notify you when the key sequence started and when it ended.
See also: Working with Tasks
Plugin Settings
To configure the Key Sequence Task plugin settings, open the Plugins Management and click on Settings for the Key Sequence Task plugin:
Key Stroke Pause Interval:
Configure the pause interval in ms between key strokes.
Task Properties
The Key Sequence Task Properties dialog is shown:
- for a new key sequence task by clicking the Key Sequence Task menu item in the Add drop down menu in the Edit group on the Home ribbon tab.
- for an existing key sequence task by selecting a key sequence task and clicking on the Properties command in the Edit group on the Home ribbon tab.
- as a bulk-edit dialog when multiple key sequence tasks were selected in the Folder / Document Dashboard and the Properties command in the Edit group on the Home ribbon tab is clicked. See also: Bulk Operations
Key Sequence Task Properties
Display Name (required)
Enter a display name for object.
Color
Click the color picker button in the display name text box to select a color. In the User Interface settings you can configure to show the color in the navigation tree, the connection tab or as connection border.
Icon
Click the icon picker button next in the display name text box to select and assign a custom icon to the object.
Description
Enter a description for the object.
Execution Mode
Some connection types may provide a different way to send key sequences (Direct Mode). For example, the Rebex based Terminal connection allows to send commands directly to the server - which might be faster and not error prone to user interference. Choose one of the following options for the key sequence task:
- Do not change Execution Mode (Default)
This option will use the current execution mode of the context connection. For example: if your Terminal connection is configured to use Direct Mode, Royal TS will not change the mode and the key sequence will be sent to the server using the Direct Mode - Always use Keyboard Input Simulation
This option will force Royal TS to always send the task to the active connection using keyboard simulation, regardless of the mode the connection is currently configured to use. - Always use Direct Mode (where supported)
This option will force Royal TS to always send the task directly to the active connection when the connection type supports the Direct Mode. If you set this option and execute the task on a connection which doesn't support Direct Mode, the task will be sent using keyboard input simulation.
Do not send scan codes
If checked, keyboard input simulation does not send scan codes. Can be used in case of keyboard layout issues.
No confirmation required
If checked, tasks executed from the Favorite Key Sequence Tasks menu do not show the Task Context confirmation window.
Note
You should only check this option for simple and harmless tasks, such as PING. Tasks which can cause damage if executed for the wrong selection (such as a reboot) should not have checked this option.
A task executed from the Navigation panel or Tasks panel always requires confirmation, regardless of the setting.
Key Sequence
The Key Sequence page allows you to configure a key sequence (simulating keyboard input).
Sequence
Enter a Key Sequence.
Tip
Pressing either the '$' or '{' key will show a popup with all available replacement tokens and special keys. Hit the ESC key to hide the popup and continue typing.
Use the button Insert to show a list of available replacement tokens and special key commands. The WAIT command token can be placed anywhere in the sequence to delay the sequence.
Examples for Key Sequences:
- A group policy is set to show a message whenever a user is attempting to log on interactively. Create a Key Sequence "{WAIT:1000}{ENTER}" which will wait 1 second (1000ms) after successfully connected to the remote desktop session and sends the ENTER key to the remote session to confirm the message.
- A Web Page connection to a flash based application which requires you to log on using username and password can be configured to send the appropriate Key Sequence after the connection has been established.
- Console commands you need to execute on one or more connections.
Credentials
The Credentials page allows you to assign a credential to the object. You can specify username and password, assign a predefined credential or you specify a credential by name (ideal when you share your configuration). You can also use the credentials defined in the parent folder.
Do not use any credentials
When selected, no credentials are configured for the object. Connections that require credentials may prompt to enter credentials or fail to connect.
Use credentials from the parent folder (not always available)
When selected, Royal TS will look for a configured credential in the parent folder.
Note
Not available for Royal Server objects, Secure Gateway objects, Remote Desktop Gateway objects and Key Sequence Tasks
Use from this connection (not always available)
When selected, the username and password is used from the context connection object.
Specify username and password
When selected, a username and password can be provided. For domain accounts use the syntax "domain\username" (without the quotes).
Use an existing credential
When selected, assign an existing credential to the object using the drop-down list. Use the add button to add a new credential. Use the edit button to edit the selected credential.
Tip
The drop-down list supports sorting and filtering "as you type" to easily find the correct credential.
Specify a credential name
When selected, enter or choose a credential name you want to assign to the object during connect-time.
If you enter '?' (without the quotes) as credential name, Royal TS will prompt for credentials by showing the credential picker dialog.
Note
Assigning a credential by name is recommended when a team of users share the same configuration file. Each user can define his own credential as long as it is using the same name and saves the credential in his own personal and protected document. This makes sharing files across team members very easy while keeping credentials safe.
Omit Domain
When checked, Royal TS will omit the domain portion of the username (domain\username or username@domain).
Note
The Omit Domain checkbox is not available for all object types!
Automatic Logon
When checked, Royal TS will use the credentials to log on to the connection automatically. This setting applies only to connection types supporting automatic logon and is ignored if a connection doesn't support automatic logon.
Note
To access the configured credentials through replacement tokens (for example in Auto Fill or Key Sequence Task configurations), use the replacement tokens \(EffeciveUsername\) and \(EffectivePassword\).
Edit Source
Opens the properties dialog of the source object for the configuration. This button will only be available when the object is configured to use the parent configuration.
See also: Working with Credentials, Credential, About shared documents
Notes
The Notes page allows you to enter notes for the selected object with HTML formatting, links and embedded images. You can also configure the notes to be inherited from the parent folder.
Use Notes from the parent folder
When selected, Royal TS will display the notes from the parent folder in the notes panel. This option is not available on the document level.
Tip
To embed images, drag them into the editor using drag & drop.
Custom Properties
The Custom Properties page allows you to enter and store additional information for the object. Various data formats are available, including protected fields. You can also group properties by using Header.
Inherit from Parent
When checked, the properties configured on the parent folder are shown but are read-only.
Custom Properties
Use the '+' icon to add a header or a Field or multiple fields based on a template. Click on the label to name the field and enter a value. Click the 'Gear' icon to remove a field or header. The 'Gear' icon also shows additional options, like moving a field up or down.
Custom Fields
The Custom Fields page allows you to enter and store additional information for the object. Custom fields can be used in tasks and templates to inject values from the context connection.
Standard custom fields are also shown in the folder dashboard views and in the properties panel. Protected custom fields can be used to store confidential data (for example when you need an additional password in a task). If you make use of protected custom fields, make sure you encrypt and password protect your document.
Note
Custom fields can be used in Tasks and in the Properties Panel. You can put web page URLs (like an iLO management address) or command lines (such as programs or batch files) in the custom fields and execute them using tasks or directly from the properties panel. Each individual custom field can also be configured to be inherited from the parent folder.
Parent Folder
The Parent Folder page allows you to view or change the parent folder of the selected object. To move multiple objects to another folder use the parent folder page in bulk-edit mode or use the move to command from the Edit tab (see Working with Connections).
Important
You cannot create connections in the Application document. Moving a folder containing connections to a folder in the Application document will fail.