![]() It will ensure that the capslock is off and hold shift when it is typing a capital character or a character that need shift down (e.g. The type method will Send keystroke for every characters of the string. So that you do not need to use this left click things to get focus on the notepad window.….in later release.….) mouse_move( 100, 100) (Methods like get_windows(“notepad”) will be implemented in future release. Suppose the notepad window on the top left corner of the screen, to type “Auto Click” in notepad. To get the current cursor position cursor_position To scroll down (backward) 5 wheel steps: mouse_scroll( -5) To scroll up (forward) 10 wheel steps: mouse_scroll( 10) To move the mouse cursor to the middle of the screen: mouse_move_percentage( 0.5, 0.5) To move the mouse cursor to 50,50 and perform a right click: mouse_move( 50, 50) To move the mouse cursor to 50,50 ( the top left corner is 0,0) and perform a double left click: mouse_move( 50, 50) ![]() You need to require the gem and include the module: require 'auto_click' include AutoClickMethods ![]() To use the methods provided by auto_click. To update auto_click: gem update auto_click Basic Usage ¶ ↑ To install auto_click: gem install auto_click Smulating mouse click, cursor movement and keystrokes Install ¶ ↑
0 Comments
Leave a Reply. |