System

C# Methods for Core > System

KeyboardPress

Simulate a keyboard input

public void KeyboardPress(string keyPress)

This CPH method uses the SendKeys method.

The keyPress string argument needs to be enclosed in curly brackets {}.

To use key combinations such as SHIFT, CTRL and ALT, you can use code modifiers listed in the link below.

Full reference of all SendKeys keystroke values and modifiers.

ShowToastNotification

public void ShowToastNotification(string id, string title, string message, string attribution, string iconPath)
public void ShowToastNotification(string title, string message, string attribution, string iconPath)