Class: RuMouse

Inherits:
Object
  • Object
show all
Defined in:
lib/rumouse.rb,
lib/rumouse/x11.rb,
lib/rumouse/win32.rb,
lib/rumouse/darwin.rb

Instance Method Summary collapse

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, button = 1, n = 1
  n.times do 
    press x, y, button
    release x, y, button
  end
end

#move(x, y) ⇒ Object

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/rumouse.rb', line 19

def move x, y
  raise NotImplementedError
end

#positionObject

Raises:

  • (NotImplementedError)


23
24
25
# File 'lib/rumouse.rb', line 23

def position
  raise NotImplementedError
end

#press(x, y, button = 1) ⇒ Object

Raises:

  • (NotImplementedError)


4
5
6
# File 'lib/rumouse.rb', line 4

def press x, y, button = 1
  raise NotImplementedError
end

#release(x, y, button = 1) ⇒ Object

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/rumouse.rb', line 8

def release x, y, button = 1
  raise NotImplementedError
end

#screen_sizeObject

Raises:

  • (NotImplementedError)


27
28
29
# File 'lib/rumouse.rb', line 27

def screen_size
  raise NotImplementedError
end