mirror of
				https://github.com/bspeice/libcvautomation
				synced 2025-11-04 02:10:35 -05:00 
			
		
		
		
	Commit initial documentation
This commit is contained in:
		@ -170,7 +170,7 @@ void matchSubImage_a ( IplImage *rootImage, cvautomationList *subImageArray, int
 | 
			
		||||
 *  				searchMethod and threshold value.
 | 
			
		||||
 * =====================================================================================
 | 
			
		||||
 */
 | 
			
		||||
void matchSubImage_a_location ( const char *rootImageFileName, cvautomationList *subImageArray, int listSize )
 | 
			
		||||
void matchSubImage_a_location ( const char *rootImage_location, cvautomationList *subImageArray, int listSize )
 | 
			
		||||
{
 | 
			
		||||
	/* This is also a higher-end wrapper for matchSubImage, but is mostly aimed
 | 
			
		||||
	 * at making python support for multiple images very easy. */
 | 
			
		||||
@ -179,7 +179,7 @@ void matchSubImage_a_location ( const char *rootImageFileName, cvautomationList
 | 
			
		||||
	cvautomationList curr;
 | 
			
		||||
 | 
			
		||||
	IplImage *rootImage;
 | 
			
		||||
	rootImage = cvLoadImage( rootImageFileName, CV_LOAD_IMAGE_COLOR );
 | 
			
		||||
	rootImage = cvLoadImage( rootImage_location, CV_LOAD_IMAGE_COLOR );
 | 
			
		||||
 | 
			
		||||
	int x = 0;
 | 
			
		||||
	for ( x = 0; x < listSize; x++ )
 | 
			
		||||
@ -383,7 +383,7 @@ void matchSubImage_a_center ( IplImage *rootImage, cvautomationList *subImageArr
 | 
			
		||||
 *  				image, rather than the top-left corner.
 | 
			
		||||
 * =====================================================================================
 | 
			
		||||
 */
 | 
			
		||||
void matchSubImage_a_location_center ( const char *rootImageFileName, cvautomationList *subImageArray, int listSize )
 | 
			
		||||
void matchSubImage_a_location_center ( const char *rootImage_location, cvautomationList *subImageArray, int listSize )
 | 
			
		||||
{
 | 
			
		||||
	/* This is also a higher-end wrapper for matchSubImage, but is mostly aimed
 | 
			
		||||
	 * at making python support for multiple images very easy. */
 | 
			
		||||
@ -392,7 +392,7 @@ void matchSubImage_a_location_center ( const char *rootImageFileName, cvautomati
 | 
			
		||||
	cvautomationList curr;
 | 
			
		||||
 | 
			
		||||
	IplImage *rootImage;
 | 
			
		||||
	rootImage = cvLoadImage( rootImageFileName, CV_LOAD_IMAGE_COLOR );
 | 
			
		||||
	rootImage = cvLoadImage( rootImage_location, CV_LOAD_IMAGE_COLOR );
 | 
			
		||||
 | 
			
		||||
	int x = 0;
 | 
			
		||||
	for ( x = 0; x < listSize; x++ )
 | 
			
		||||
 | 
			
		||||
@ -18,9 +18,6 @@
 | 
			
		||||
 | 
			
		||||
#include <libcvautomation/libcvautomation-xtest.h>
 | 
			
		||||
 | 
			
		||||
#define IS_CMD( x, y ) strncmp( x, y, strlen( y ) ) == 0
 | 
			
		||||
#define COMMAND_STR_LEN 512
 | 
			
		||||
 | 
			
		||||
/* Note: The XLib documentation says that we shouldn't need to XFlush,
 | 
			
		||||
 * but I've found in testing that events don't get done correctly unless
 | 
			
		||||
 * we do. I've included the XFlush() calls. */
 | 
			
		||||
@ -498,8 +495,6 @@ void xte_mouseJiggle ( Display *displayLocation )
 | 
			
		||||
 */
 | 
			
		||||
void xte_clickKey ( Display *displayLocation, char *key )
 | 
			
		||||
{
 | 
			
		||||
	/* Part of this code based on xte from the xautomation source
 | 
			
		||||
	 * available at http://hoopajoo.net/projects/xautomation.html */
 | 
			
		||||
	KeyCode kc;
 | 
			
		||||
	KeySym ks;
 | 
			
		||||
 | 
			
		||||
@ -737,3 +732,4 @@ cvaPoint xte_commandString ( Display *displayLocation, char *commandString, int
 | 
			
		||||
 | 
			
		||||
	return resultPoint;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user