Class: RuMouse
- Inherits:
-
Object
- Object
- RuMouse
- Defined in:
- lib/rumouse.rb,
lib/rumouse/x11.rb,
lib/rumouse/win32.rb,
lib/rumouse/darwin.rb
Instance Method Summary collapse
- #click(x, y, button = 1, n = 1) ⇒ Object
- #move(x, y) ⇒ Object
- #position ⇒ Object
- #press(x, y, button = 1) ⇒ Object
- #release(x, y, button = 1) ⇒ Object
- #screen_size ⇒ Object
Instance Method Details
#click(x, y, button = 1, n = 1) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/rumouse.rb', line 12 def click x, y, = 1, n = 1 n.times do press x, y, release x, y, end end |
#move(x, y) ⇒ Object
19 20 21 |
# File 'lib/rumouse.rb', line 19 def move x, y raise NotImplementedError end |
#position ⇒ Object
23 24 25 |
# File 'lib/rumouse.rb', line 23 def position raise NotImplementedError end |
#press(x, y, button = 1) ⇒ Object
4 5 6 |
# File 'lib/rumouse.rb', line 4 def press x, y, = 1 raise NotImplementedError end |
#release(x, y, button = 1) ⇒ Object
8 9 10 |
# File 'lib/rumouse.rb', line 8 def release x, y, = 1 raise NotImplementedError end |
#screen_size ⇒ Object
27 28 29 |
# File 'lib/rumouse.rb', line 27 def screen_size raise NotImplementedError end |