XAUTOMATION(7) Miscellaneous Information Manual XAUTOMATION(7)NAME
xautomation - control X from the command line, and find things on the screen
DESCRIPTION
xautomation is a set of command lines programs to control X and do "visual scraping" to find things on the screen. The control interface
allows mouse movement, clicking, button up/down, key up/down, etc, and uses the XTest extension so you don't have the annoying problems
that xse has when apps ignore sent events. The visgrep program find images inside of images and reports the coordinates, allowing programs
to find buttons, etc, on the screen to click on.
xautomation consists in the following programs:
pat2ppm
Converts an image file from PAT to PPM format.
patextract
Extract a part of a PNG image file.
png2pat
Converts an image file from PNG to PAT format.
rgb2pat
Converts an image file from 24-bit RGB to PAT format
visgrep
Visual grep, greps for images in another image.
xte Generates fake input using the XTest extension.
For more information, please see the individual manpages of these programs.
SEE ALSO pat2ppm(1), patextract(1), png2pat(1), rgb2pat(1), visgrep(1), xte(1).
AUTHOR
xautomation was written by Steve Slaven <bpk@hoopajoo.net>.
This manual page was written by Aurelien Jarno <aurel32@debian.org>, for the Debian project (but may be used by others).
August 08, 2005 XAUTOMATION(7)
Check Out this Related Man Page
VISGREP(1) General Commands Manual VISGREP(1)NAME
visgrep - Visual grep, greps for images in another image
SYNOPSIS
visgrep [options] image.png detect.pat match.pat ...
DESCRIPTION
visgrep is a program that greps for image in another image.
All .pat files are created using png2pat(1) or rgb2pat(1). The image.png is scanned for detect.pat starting from X,Y given in parameters.
When detect.pat is found, then all the match.pat files are scanned at an offset of x,y given in parameters. If a match is found, then vis-
grep prints the x,y and index of the item.
For example, image.png is a screenshot and match1.pat .. match5.pat are images of letters a to e. Each of these letters is enclosed in a
blue box, so detect.pat is an image of the upper left corner of the box. This box is not included in the match*.pat files, so they are
actually offset 5 pixels down and 4 pixels to the left. You might run it like this then:
visgrep -x-4 -y5 image.png match_corner.pat match_a.pat match_b.bat ...
Etc, with all matches listed. Now suppose the screen showed ace so visgrep might output:
10,10 0
50,10 2
90,10 4
Showing that match_a.pat (index 0) is at 10,10 on the screen. If no match is found even though the detection image is found, the index will
be -1.
OPTIONS
A summary of options is included below.
-h Show summary of options.
-x Set x offset for detection matching.
-y Set y offset for detection matching.
-X Start scanning at X.
-Y Start scanning at Y.
-t Set tolerance for 'fuzzy' matches, higher numbers are more tolerant.
EXIT STATUS
0 at least one match was made.
1 no matches were made.
2 an error occured.
SEE ALSO pat2ppm(1), patextract(1), png2pat(1), rgb2pat(1), xte(1).
AUTHOR
visgrep was written by Steve Slaven <bpk@hoopajoo.net>.
This manual page was written by Aurelien Jarno <aurel32@debian.org>, for the Debian project (but may be used by others).
April 20, 2004 VISGREP(1)
Hy,
Does someone know how to setup "find" command allowing to find all files or directories according to a specific filter whatever case sensitive (I'm working on AIX platform 4.3.3).
Example:
find / -type d -exec grep ....
Or perhaps using regular expresssion
find / -type d -name... (6 Replies)
Ok heres the situation
I've been studying Solaris 8 for about 6 months now and some things click in my head but others don't.
One of the things that don't click are file permissions.
For example I login at work and I use the ls -l command to get a long listing of the files w/ the permissions.... (2 Replies)
I tried to redirect the find command to a file (using find ..... > asdf ) and the file asdf is always empty . The results keep appearing on the screen.
Is there another way to do this ?
hmm . i just figured out that the file is empty only when in fact all results of the find command give a... (1 Reply)
hi,
i have a selection of directories on a filesystem and i want to know the total size of the lot of them.
I can list the contence of them with:
find /mystuff/*/*/work/*/prog/images/
but how do i get there total size?
thanks for any help (4 Replies)
Hi ,
Is there any way i can find a file with specific word inside it.
For example if i want to find a file which has some text written inside it.
How would i form a command to search them? (3 Replies)
Hi guys, I've been trying to find out what's wrong with the code, g++ doesn't prompt any error but it doesn't do what I want it to do, and after looking at it over and over I can't find anything wrong with it. The code its quite simple:
I need to save the last bit of every position on the vector... (2 Replies)
Tricky one:
I want to do several things all at once to blow away a directory (rm -rf <dir>)
1) I want to find all files recursively that have a specific file extension (.ver) for example.
2) Then in that file, I want to grep for an expression ( "sp2" ) for example.
3) Then I want to... (1 Reply)
Hi folks,
I am scraping data from the Internet that has the format similar to what's on this page -- Trigger Notice Report
The code I've written for scraping and storing results works fine when the HTML code is well written, but not when there are mistakes. In particular, the code breaks when... (4 Replies)
Hi & good day,
How to use find correctly ?
I have several folders, _img1, _img2 etc.
Then I want to use the find command to find part of an image name, such as:
the string ”modern”
which is (at least) in:
”_img2/modern_world2PS220.jpg”
Also I want to know _in which folder_ it... (10 Replies)
Hi All,
I need to find all files in a directory which are containing specific pattern. Thing is that file name should not consider if pattern is only in commented area.
all contents which are under /* */ are commented
all lines which are starting with -- or if -- is a part of some sentence... (13 Replies)