Method: AutoItX3.release_mouse
- Defined in:
- lib/AutoItX3/mouse.rb
.release_mouse(button = "Primary") ⇒ Object
call-seq:
release_mouse( [ button = "Primary" ] ) ==> nil
mouse_up( [ button = "Primary" ] ) ==> nil
Releases a mouse button hold down by #hold_mouse_down.
Parameters
button-
(
"Primary") The mouse button to release.
Return value
nil.
Example
AutoItX3.hold_mouse_down
AutoItX3.release_mouse
#With the secondary button
AutoItX3.hold_mouse_down("Secondary")
AutoItX3.release_mouse("Secondary")
169 170 171 172 173 |
# File 'lib/AutoItX3/mouse.rb', line 169 def release_mouse( = "Primary") @functions[__method__] ||= AU3_Function.new("MouseUp", 'S') @functions[__method__].call(.wide) nil end |