UVK scripting commands -  ->ClickControlAt()

Show menu

->ClickControlAt()

Sintax:

->ClickControlAt( x, y, winIndex, button, clicks )

Description:

Click a control at a specific position, relative to the parent's client area.

Parameters:

x - The left position, in pixels
y - The top position, in pixels.
winIndex (optional) - The index of the window the control belongs to. Default is the last ->WaitWindow() or ->WaitWindow2().
Button (optional) - The mouse button to click: left, right, middle, main, primary, menu, secondary. Default is main.
Clicks (optional) - The number of times to click the mouse. Default is 1. Use 2 to perform a double click.

Remarks:

Optional parameters do not need to be specified.
This function must be called after at least one call to ->WaitWindow() or ->WaitWindow2(), otherwise it will fail.
'main' and 'primary' are always the main button, even if the mouse buttons have been swapped in the control panel.
'menu' or 'secondary' are always the secondary mouse button, even if the mouse buttons have been swapped in the control panel.
'left' and 'right' are those buttons by default.
However, if the mouse buttons have been swapped in the control panel left will be the righ button, and right will be the left button.

Example:

 

Back to the list

 


 

Copyright Carifred © 2010 - 2024, all rights reserved.

Scroll to top