Send text Version 13 (Net)

Action group: Windows


Description

The action sends a text to a specified win-element

Action icon

Settings of parameters

ParameterDescription
ElementA resource that stores data about the selected application element.
Time-outThe time in milliseconds during which the search for the desired window will take place.
TextThe object whose text representation needs to be entered.
ClearClear the field before input.
Window orderIf multiple windows are found, the action interacts with the window with the specified number.
Input by symbolsIf the value is "false", the entire text will be inserted. The method works for most applications. If the value is "true", the text will be printed character by character. It is recommended to use this method in cases where the first one does not work correctly.

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ElementResource with data of selected element in applicationRobin.WinElement
Yes
Time-outTime in milliseconds to find required window.Robin.Numeric
No
TextObject to send as stringRobin.Object
No
ClearClear before sendingRobin.BooleantrueNo
Window orderWhen found more than one window, action would interact with window defined by orderRobin.Numeric
No
Input by symbolsIf the value is «false», the text will be pasted at once. It works correctly for most applications. If the value is «true», the text will be entered character by character. It Is recommended when first approach works incorrectly.Robin.BooleantrueNo

Special conditions of use

An error may occur when this action is running in 1C.

For example, there is a robot algorithm, as a result of which the robot must enter text in a field and click on a button.

1. In the "Send text" action ("Windows" action group) a field in 1C and the text for input are specified.
2. In the "Window focus element" action the "Record" button is specified.
3. The robot is active.

Result: the action enters the specified text into the field, but when you click on "Record", an error is displayed that the field is empty, as a result, the robot does not perform, the record is not created.

A temporary solution until the problem is fixed:

In the case of 1C, you need to send a "Key press" from the "Simulate system" group and specify the Backspace after the "Send text" action.

Example of use

Task

There is an open window "Mail". In the input field specify value "Test".

Solution

Use the "Send text" action.

Implementation

  1. Move the "Send text" action to the workspace.
  2. Set the "Send text" action parameters. Obtain the element with the WinSpy tool. More about working with WinSpy - Working with Win-elements

    Setting a timeout, in general, does not lead to an increase in the execution time of the action beyond the time it will take for the element that we use in the action to become visible and accessible. During the set timeout, the action tries to access the element it is working with. As soon as the element is accessed, the waiting timeout ends.
  3. Click "Start" in the top panel.

Result

The program robot completed successfully.

The desired text is entered in the input field of the dialog box.


 


  • Нет меток