LogoLogo
HomeContact UsRegister for a live demo!Get a Quote
  • Thinfinity Remote Desktop 5
  • About This Document
  • Introduction
  • What's new in 5.0
  • Architecture
  • Security
  • Upgrade from 4.0
  • Getting Started Section
    • Getting Started
    • Installing Thinfinity® Remote Desktop
    • Using Thinfinity® Remote Desktop for the First Time
      • Verifying the Communication Settings
      • Connecting to a desktop
    • Customizing Thinfinity® Remote Desktop
      • Setting the Access Security Level
        • Access Profiles
          • RDP Profiles
            • Creating an RDP Profile
            • Editing an RDP Profile
            • Disabling an RDP Profile
            • Removing an RDP Profile
            • The "[+]" Profile
          • Weblink Profiles
            • Creating a Weblink Profile
            • Editing a Weblink Profile
            • Disabling a Weblink Profile
            • Removing a Weblink Profile
          • RD Web Access Profiles
            • Creating a RD Web Access Profile
            • Editing a RD Web Access Profile
            • Disabling a RD Web Access Profile
            • Removing a RD Web Access Profile
          • VNC / RFB Profile
            • Creating a VNC Profile
            • Editing a VNC Profile
            • Disabling a VNC Profile
            • Removing a VNC Profile
          • Telnet/SSH profile
            • Creating a Telnet Profile
            • Editing a Telnet Profile
            • Disabling a Telnet Profile
            • Removing a Telnet Profile
      • Testing Internal Access
      • Configuring Internet Access
      • Enabling Remote Sound
      • Mapping Remote Drives
        • Intermediate Disks
        • Shared Folders
    • After Customization
      • Connecting to a Desktop
      • Connecting to an Application
      • Performing a File Transfer
        • Navigating
        • File Options
        • Remote Folder Area Options
        • Downloading and Uploading files
    • Supported RDP Shortcut Keys
  • Advanced Settings Section
    • Advanced Settings
    • Thinfinity® Remote Desktop Manager
      • General
      • Broker
      • Authentication
        • OAuth/2
          • Methods
          • Settings
          • Mappings
          • Configure OAuth with Okta
          • Configure OAuth with Auth0
        • RADIUS
          • Settings
          • Mappings for SSO
        • TOTP (Time-based One-time Password)
          • TOTP Settings
      • Access Profiles
        • RDP Profile Editor
          • General
            • Setting up a Hyper-V Profile
            • Setting up an RDS Collection Profile
          • Display
          • Resources
          • Program
          • Experience
          • Advanced
          • Printer
          • Permissions
          • Restrictions
          • Access Hours
          • Authentication methods
        • Web Link Profile Editor
          • Web Link
          • Permissions
        • RD Web Access Editor
          • General
          • Permissions
        • VNC / RFB Profile Editor
          • Display
          • Permissions
          • Restrictions
          • Access Hours
          • Authentication methods
        • Telnet / SSH Profile Editor
          • Display
          • SSL
          • SSH
          • Options
          • Permissions
          • Authentication methods
          • Access Hours
          • Restrictions
      • Folders
      • Permissions
      • External DLL Authentication Method Settings
      • Duo Authentication Method Settings
        • How to configure DUO
      • SAML Authentication Method Settings
        • Configure SAML with Okta
        • Configure SAML with Centrify
  • Gateway Manager
    • Managing the SSL Certificate
      • The Default Embedded Certificate
      • A Self-Signed Certificate
      • A CA Certificate
  • License Manager
    • License Activation
    • Proxy Activation
    • Get a new Trial Serial Number
    • Activate a Serial Number Online
    • Activate a Serial Number Offline
    • Registering Your License With The License Server Manager
  • Custom Settings
    • Extend the Remote Desktop’s Toolbar
  • Customizing the Toolbar
    • Using customsettings.js
    • Using the 'connect' Method
  • Remote FX
  • Save Session
    • Record a Session
    • Play Recorded Sessions
  • Multi-touch Redirection
  • Enhanced Browser and DPI Support
    • Model Inheritance
    • Property Reference
    • The Calculation Process
    • Examples
  • Silent Install Options
  • Credentials Management
    • User-based Access Profiles
    • Credentials Management
  • Customize Translation
  • Mobile Devices Section
    • Mobile Devices
    • Getting into Thinfinity® Remote Desktop
    • Mouse Control
    • Keyboards and Toolbars
    • Gestures
    • Disconnecting from Thinfinity® Remote Desktop
    • iPad Application
      • Configuration
      • Side Bar
  • Scaling and Load Balancing Section
    • Scaling & Load Balancing
    • Scaling and Load Balancing Configurations
    • Installing Components
    • Configuring a Load Balancing Scenario
    • How to configure your license
  • Integrating Thinfinity® Remote Desktop Section
    • Integrating Thinfinity® Remote Desktop
    • SDK
      • Deploying
      • Using the SDK
      • SDK Login
      • Connect method
        • Placement
        • Destination and Authentication
        • Settings
          • kbdLayout Values
        • Features
        • Events
        • Toolbar Customization
      • Browser Resizing
      • Keystroke Methods
      • SSL Certificate
      • Demo
    • External Authentication
      • Apikey
    • Single Sign On
      • Facebook OAuth Authentication Example
      • Google OAuth/2
        • Google Client ID for Web Applications
      • RADIUS
    • Customizing the Web Interface
      • Changing the Logo
      • Customizing the Web Files
      • Files Location
    • Web Services API
      • Architecture
      • Installing the Web Service
      • Setting up the Communication Settings
      • Profiles Web Service
        • Methods
        • Types
          • The WS Profile type
        • The Demo Applications
      • Analytics Web Service
        • Methods
        • Types
          • WSQueryInfo
          • WSQueryRange
          • WSDBLoginRecord
          • WSSessionRecord
          • WSDBConnectionRecord
          • WSDBBrowserRecord
        • The Demo Application
    • One-Time-URL
      • Configuring the Connection
      • Enabling Features
  • User guide Section
    • User Guide
    • Logging In
    • Advanced Web Features
      • Tree View
      • Listing Options
      • Search bar
    • Accessing from Mobile Devices
      • Connecting with Open Parameters
        • General
        • Display
        • Resources
        • Program
        • Experience
        • Advanced
      • Connecting with Profiles
    • Toolbar
      • Actions
      • File Transfer
      • Options
      • Disconnect
    • Features
      • File Transfer
        • Navigating
        • File Options
        • Remote Folder Area Options
        • Downloading and Uploading files
      • Remote Printer
      • Remote Sound
      • Share Session
      • Mapped Drives
      • Analytics
        • Sessions
        • Connections
        • Logins
        • Browsers
        • Filter
        • Configuring MS SQL Server
          • Analytics Tables Reference
    • Disconnecting
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Integrating Thinfinity® Remote Desktop Section
  2. SDK

Keystroke Methods

Some keyboard keystroke combinations are not sent to the remote machine because they are intended to work only on the local environment.

Through Thinfinity® Remote Desktop Server SDK library it is possible to send any keystroke combination to the server by using a list of methods available in any Thinfinity® Remote Desktop Server instance you create.

The table below lists and describes those methods.

The first four methods are general base methods that once combined could generate any keystroke sequence.

The last eight methods are commonly used key combinations that might be useful to enhance functionality to your Thinfinity® Remote Desktop Server integration.

Method

Behaviour

Arguments

sendText(textValue)

This method sends a plain text value to the current remote cursor position.

textValue

String

Text to be sent

sendKeyStroke(keyCode)

The sendKeyStroke method sends a key code, emulating the key's press and release sequentially.

keyCode

Number

Unicode representing

the key the user pressed

and released

sendKeyDown(keyCode)

Sends a key down.

keyCode

Number

Unicode representing

the key the user

pressed

sendKeyUp(keyCode)

Sends a key up.

keyCode

Number

Unicode representing

the key the user released

sendCtrlAltDel()

Sends a CTRL+ALT+DEL sequence.

sendShiftCtrlEsc()

Sends a CTRL+ALT+DEL sequence.

sendShellExplorer()

Sends a CTRL+ALT+E (or WINDOWS+E) sequence.

sendShellRun()

Sends a CTRL+ALT+R (or WINDOWS+R) sequence.

sendCtrlEsc()

Sends a CTRL+ESC sequence.

sendCut()

Sends a CTRL+X sequence.

sendCopy()

Sends a CTRL+C sequence.

sendPaste()

Sends a CTRL+V sequence.

Usage Examples:

The next examples are JavaScript methods which are intended to show you a couple of usage cases for combining Thinfinity® Remote Desktop Server Library Keystroke methods.

Example 1 - Enter:

This first example shows you how to send a single keystroke, by sending its key code on the sendKeyStroke method argument.

function sendEnter() {
 if (mythinrdp) {
 mythinrdp.sendKeyStroke(13);
 }
 }

Example 2 - Select next word / Select Line:

Observe on these next examples how to use the combination of "keydown" followed by "keyup" keys in order to select the next word inside of a text.

These next two examples simulate a combinations of keys pressed all together.

Remember that the sendKeyDown method has to be followed, at some point, by the sendKeyUp method, in order to release the key. If you only call the sendKeyDown method it is as if a key was constantly pressed on the keyboard.

function selectNextWord() {
 if (mythinrdp) {
 mythinrdp.sendKeyDown(0x11); //CTRL
 mythinrdp.sendKeyDown(0x10); //SHIFT
 mythinrdp.sendKeyStroke(39); // RIGHT ARROW
 mythinrdp.sendKeyUp(0x10); //SHIFT
 mythinrdp.sendKeyUp(0x11); //CTRL
 }
 }
function selectLine() {
 if (mythinrdp) {
 mythinrdp.sendKeyDown(0x10); //SHIFT
 mythinrdp.sendKeyStroke(40); // DOWN ARROW
 mythinrdp.sendKeyUp(0x10); //SHIFT
 }
 }

Example 3 - Send a plain text:

This next example sends a plain text followed by an 'enter' to the remote environment.

function sendText() {
 if (mythinrdp) {
 mythinrdp.sendText("This is a test...");
 sendEnter();
 }
}

PreviousBrowser ResizingNextSSL Certificate

Last updated 4 years ago

Was this helpful?