
This caption identifies the window.Ĭommand for steering the control. The Module TBox Window Operation sends specific commands to a window.Ĭaption of the window that you want to steer. String with Buffer and special characters In this example, you send the following string: "". Sends the command Close window to the window. Sends the command Select all to the window. The double quotation marks that enclose specific commands escape the special characters within the command. In this example, you send a value and several keyboard commands to the file Example_Send_Key.txt.

If your command contains a string with Microsoft SendKeys-specific special characters, you have to escape these too, according to the Microsoft SendKeys documentation (see Example 2). For more information, see chapter "Special characters". If you use special characters in your commands, you need to escape them. For example, if you want to send Abc and have CAPS LOCK on, Tricentis Tosca sends aBC. If you activate CAPS LOCK on your machine, Tricentis Tosca sends the keys inverted. For a list of available SendKeys commands and their syntax, see the Microsoft SendKeys documentation. Tricentis Tosca uses the WinForms function SendKeys. Keyboard command that you want to send to the window. a wildcard at the start or at the end of a string. You can add either a leading or trailing wildcard, i.e. If you enter a caption, Tricentis Tosca brings the window to the foreground.

The Module TBox Send Keys has the following ModuleAttributes:Ĭaption of the window that you want to steer. Like the SendKeys keyboard command, the Module TBox Send Keys uses the WinForms function SendKeys. This Module sends keyboard commands to a window.
