Class: Hokusai::Automation::DriverCommands::TriggerMouseDown
- Inherits:
-
TriggerMouseBase
- Object
- Base
- TriggerMouseBase
- Hokusai::Automation::DriverCommands::TriggerMouseDown
- Defined in:
- ui/src/hokusai/automation/driver_commands/trigger_mouse.rb
Instance Attribute Summary
Attributes inherited from TriggerMouseBase
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
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
38 39 40 41 42 43 44 45 46 47 48 |
# File 'ui/src/hokusai/automation/driver_commands/trigger_mouse.rb', line 38 def execute(blocks, canvas, input) if matches_blocks(blocks) mouse_center(canvas, input) trigger_mouse(input, down: true) self.value = true done! end end |