Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

...

The action determines the coordinates of the specified element in the window and scrolls to this element until it is as close as possible to the center of the screen

Action icon 

Parameters

Input parameters 

Element - parameter that stores the data of the Win-element whose coordinates will be defined

Timeout - the time in milliseconds for which the desired element will be searched.

Window order - the sequence number of the window that the action should work with. If you do not specify a window number, the first window will be checked. The numbering starts from 1.

...

Settings of parameters

PropertyDescriptionTypeFilling exampleMandatory field
Parameters
ElementA resource that stores data about the selected application element.Robin.WinElement
Yes
Time-out, msThe time in milliseconds for which the desired element will be searched.Robin.Numeric
No
Window orderThe sequence number of the window that the action should work with. If you do not specify a window number, the first window will be checked. The numbering starts from 1.Robin.Numeric
No

...

  1.  Assemble a robot scheme with the actions:

  2. Set the "Run" action parameters.  

  3. Set the parameters of the “Scroll "Scroll to element” element" action. The element must be obtained using the WinSpy tool. Working with WinSpy is described in the Получение win-элемента section. Setting a timeout does not, in general, increase the execution time of an action beyond the time it takes for the item used 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 item is available, the waiting timeout expires.
  4. Click "Start" in the top panel. 

...

The program robot completed successfully. 


Starting position:

The “Scroll "Scroll to element” element" action found the desired Win-element and scrolled to it.

...