libcvautomation
2.0
|
This page describes the various command strings available for the xte_commandString() function.
'mouseclick <button_number>'
Click the mouse button <button_number> in-place.
'imouseclick <image_name>'
Click the mouse at an image's top-left corner.
'icmouseclick <image_name>'
Click the mouse at an image's center.
'mousexy <x-coord> <y-coord>'
Move the mouse to an absolute coordinate.
<x-coord>
and <y-coord>
are expected to be integers. 'mouserxy <x-increment> <y-increment>'
Move the mouse by the given x and y values (relative motion).
<x-increment>
and <y-increment>
are expected to be integers. 'mouseimage <image_name>'
Move the mouse to an image's top-left corner.
'cmouseimage <image_name>'
Move the mouse to an image's center.
'mousedown <button_number>'
Push and leave down a mouse button.
'mouseup <button_number>'
Release mouse button <button_number>
'mousejiggle'
Jiggle the mouse (helps to activate some widgets). Moves the mouse right and down 1 pixel, and then back.
'mousescrolld'
Scroll the mouse down 1 time - depending on window manager settings, etc., this may be multiple lines.
'mousescrollu'
Scroll the mouse up 1 time - depending on window manager settings, etc., this may be multiple lines.
'mouselocation'
Return the current location of the mouse pointer.
'keyclick <key_name>'
Push and release a keyboard key. This can be a key like 'a'
, 'b'
, or something fancy like 'space'
. Please see XTest Key Strings for a full list of special keys.
'keydown <key_name>'
Push down but do not release a keyboard key. This can be a key like 'a'
, 'b'
, or something fancy like 'space'
. Please see XTest Key Strings for a full list of special keys.
'keyup <key_name>'
Release a keyboard key. This can be a key like 'a'
, 'b'
, or something fancy like 'space'
. Please see XTest Key Strings for a full list of special keys.
'keystring <string>'
Input a string of text to the X11 server. For example, inputting 'Hello, world!" will act as if you typed 'Hello, world!' from the keyboard.
'waitfor <image_name>'
Wait for an image to show up on screen. For example, this can be used to make sure a button exists before clicking it.