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. - Warning:
- The
<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). - A positive X increment will move the mouse to the right, and a positive Y increment will move the mouse down.
- Warning:
- The
<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>
Jiggle the mouse (helps to activate some widgets). Moves the mouse right and down 1 pixel, and then back.
Scroll the mouse down 1 time - depending on window manager settings, etc., this may be multiple lines. - Note:
- This is a wrapper function for clicking button 4 on the mouse
Scroll the mouse up 1 time - depending on window manager settings, etc., this may be multiple lines. - Note:
- This is a wrapper function for clicking button 5 on the mouse
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.
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.
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.
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. - Warning:
- Unlike Key Button Down, Key Button Up, and Key Button Click, this function can not handle special keys like 'space'.
Wait for an image to show up on screen. For example, this can be used to make sure a button exists before clicking it.
Generated on Wed Jul 25 10:34:19 2012 for libcvautomation by
1.4.7