mirror of
				https://github.com/bspeice/libcvautomation
				synced 2025-11-03 18:00:43 -05:00 
			
		
		
		
	Add functions to scroll the mouse up and down
This commit is contained in:
		@ -85,6 +85,12 @@ void xte_mouseUp ( Display *displayLocation, int mouseButton );
 | 
			
		||||
/* Move the mouse a little bit */
 | 
			
		||||
void xte_mouseJiggle ( Display *displayLocation );
 | 
			
		||||
 | 
			
		||||
/* Scroll the mouse up */
 | 
			
		||||
void xte_mouseScrollUp ( Display *displayLocation );
 | 
			
		||||
 | 
			
		||||
/* Scroll the mouse down */
 | 
			
		||||
void xte_mouseScrollDown ( Display *displayLocation );
 | 
			
		||||
 | 
			
		||||
/* Press and release a key 
 | 
			
		||||
 * Note that we use a string for *key, since keys like "space" are still valid. */
 | 
			
		||||
void xte_clickKey ( Display *displayLocation, char *key );
 | 
			
		||||
@ -405,6 +411,16 @@ Release  mouse button \c <button_number>
 | 
			
		||||
\code 'mousejiggle' \endcode
 | 
			
		||||
Jiggle the mouse (helps to activate some widgets). Moves the mouse right and down 1 pixel, and then back.
 | 
			
		||||
 | 
			
		||||
\section mousescrolld Mouse Scroll Down
 | 
			
		||||
\code 'mousescrolld' \endcode
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
\section mousescrollu Mouse Scroll Up
 | 
			
		||||
\code 'mousescrollu' \endcode
 | 
			
		||||
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
 | 
			
		||||
 | 
			
		||||
\section keyclick Key Button Click
 | 
			
		||||
\code 'keyclick <key_name>' \endcode
 | 
			
		||||
Push and release a keyboard key. This can be a key like \c 'a', \c 'b', or something fancy like \c 'Space'. Please see \ref XTest_key_strings for a full list of special keys.
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user