Method: AutoItX3.move_mouse

Defined in:
lib/AutoItX3/mouse.rb

.move_mouse(x, y, speed = 10) ⇒ Object

call-seq:

move_mouse( x , y [, speed = 10 ] ) ==> nil
mouse_move( x , y [, speed = 10 ] ) ==> nil

Moves the mouse cursor to the given position.

Parameters

x

The goal X coordinate.

y

The goal Y coordinate.

speed

(10) The speed to move the cursor with. 0 means no movement and the cursor is set directly to the goal position.

Return value

nil.



148
149
150
151
152
# File 'lib/AutoItX3/mouse.rb', line 148

def move_mouse(x, y, speed = 10)
  @functions[__method__] ||= AU3_Function.new("MouseMove", 'LLL', 'L')
  @functions[__method__].call(x, y, speed)
  nil
end