Class: Hokusai::Automation::DriverCommands::TriggerMouseUp

Inherits:
TriggerMouseBase show all
Defined in:
ui/src/hokusai/automation/driver_commands/trigger_mouse.rb

Instance Attribute Summary

Attributes inherited from TriggerMouseBase

#value

Attributes inherited from Base

#last_parent, #request_id, #state, #status

Instance Method Summary collapse

Methods inherited from TriggerMouseBase

#button, #initialize, #location, #on_complete

Methods included from MouseMethods

#trigger_mouse

Methods inherited from Base

#initialize, #matches_block, #matches_blocks, #mouse_center, #mouse_move, #on_complete

Constructor Details

This class inherits a constructor from Hokusai::Automation::DriverCommands::TriggerMouseBase

Instance Method Details

#execute(blocks, canvas, input) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 52

def execute(blocks, canvas, input)
  if matches_blocks(blocks)
    
    mouse_center(canvas, input)
    trigger_mouse(input, up: true)

    self.value = true
    
    done!
  end
end