Module: Castanaut::Plugin::Mousepose
- Defined in:
- lib/plugins/mousepose.rb
Overview
This module provides actions for controlling Mousepose, a commercial application from Boinx Software. Basically it lets you put a halo around the mouse whenever a key mouse action occurs.
It doesn’t do any configuration of Mousepose on the fly. Configure Mousepose settings before running your screenplay.
Tested against Mousepose 3. More info: www.boinx.com/mousepose
Instance Method Summary collapse
-
#dim ⇒ Object
Dismiss the halo around the mouse that was invoked by a previous highlight method.
-
#highlight ⇒ Object
Put a halo around the mouse.
Instance Method Details
#dim ⇒ Object
Dismiss the halo around the mouse that was invoked by a previous highlight method.
30 31 32 33 34 35 36 |
# File 'lib/plugins/mousepose.rb', line 30 def dim execute_applescript(%Q` tell application "Mousepose" stop effect end `) end |
#highlight ⇒ Object
Put a halo around the mouse. If a block is given to this method, the halo will be turned off when the block completes. Otherwise, you’ll have to use dim to dismiss the halo.
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/plugins/mousepose.rb', line 16 def highlight execute_applescript(%Q` tell application "Mousepose" start effect end `) if block_given? yield dim end end |