Smartpoint Cloud Connector Execute Commands

The Smartpoint Cloud Connector exposes different functionalities that can be triggered by the third-party application.

The Execute Commands do not trigger a response back to the third-party application.

Exposed Execute Commands

  • MoveCursorUp: Moves the cursor one position up.

  • MoveCursorDown: Moves the cursor one position down.

  • MoveCursorLeft: Moves the cursor one position left.

  • MoveCursorRight: Moves the cursor one position right.

  • MoveCursorSelectionUp: Moves the cursor and the selection one position up.

  • MoveCursorSelectionDown: Moves the cursor and the selection one position down.

  • MoveCursorSelectionLeft: Moves the cursor and the selection one position left.

  • MoveCursorSelectionRight: Moves the cursor and the selection one position right.

  • PrevTabStop: Moves the cursor to the previous TabStop (from the current cursor position).

  • NextTabStop: Moves the cursor to the next TabStop (from the current cursor position).

  • PrevWord: Moves the cursor to the previous word (from the current position). And it is possible to make word selection too.

  • NextWord: Moves the cursor to the next word (from the current position). And it is possible to make word selection too.

  • ClearTerminal: Clears all the content from the specified terminal, and leaves only a SOM.

  • ClearTerminals: Clears all the terminals, leaving only a SOM.

  • DeleteChar: Removes the last char from the cursor position.

  • DeleteCharForward: Removes the char from the cursor position.

  • ExecuteEntry: Sends an entry to the host, capturing the characters from the cursor position to the last SOM.

  • CancelSendEntry: Cancels the queue of entries waiting to be processed but does not cancel the entry that is being processed.

  • MoveCursorHome: Moves the cursor to the start of the line, or if it is already there, to the start of the terminal.

  • MoveCursorSelectionHome: Moves the cursor and the selection to the start of the line, or if it is already there, to the start of the terminal.

  • MoveCursorEnd: Moves the cursor to the end of the line, or if it is already there, to the end of the terminal.

  • MoveCursorSelectionEnd: Moves the cursor and the selection to the end of the line, or if it is already there, to the end of the terminal.

  • PageUp: Sends a "MU" entry to go to the previous page.

  • PageDown: Sends a "MD" entry to go to the next page.

  • ShowEntry: Displays the previous or the next entry.

  • ToggleInsertMode: Changes the insert mode.

  • ScrollViewport: Does the minimum viewport movement so the cursor is visible.

  • WriteChars: Write chars into the terminal like he was the user.

Example

Copy
var parameters = new Dictionary<string, object>();
parameters.Add("chars", "A15JUNMADBCN");

var message = new MessageRequest
{
    id = Guid.NewGuid().ToString(),
    type = "executeCommand",
    operation = "WriteChars",
    windowNumber = "1",
    parameters = parameters,
};

webView.CoreWebView2.PostWebMessageAsJson(JsonConvert.SerializeObject(message));