Method: XDo::Window#move_mouse
- Defined in:
- lib/x_do/window.rb
#move_mouse(window_x, window_y) ⇒ Object
Moves the mouse in window coordinates.
106 107 108 109 110 |
# File 'lib/x_do/window.rb', line 106 def move_mouse(window_x, window_y) old_location = @xdo.mouse.location move_mouse_async window_x, window_y @xdo.mouse.wait_for_move_from old_location[0], old_location[1] end |