Blink macro (click & drag)
Posted: Tue Oct 24, 2017 5:14 pm
Thought I should share this macro I made for another forum members son.
This macro is made for either of the eye blink settings in Iris. This will enable you to either perform a single click or a click & hold action depending on how long you blink.
A short blink will perform a single click.
A longer blink(keep your eye closed a moment) will hold the mouse button down. Blinking a second time will release the button.
I also have a macro that will work for people using the dwell function if anyone wants it...
This macro is made for either of the eye blink settings in Iris. This will enable you to either perform a single click or a click & hold action depending on how long you blink.
A short blink will perform a single click.
A longer blink(keep your eye closed a moment) will hold the mouse button down. Blinking a second time will release the button.
Code: Select all
<MACRO id="LongBlink_OR_ShortBlink">
<START>
<CONDITION>
<VARIABLECONDITION id="LONG" condition="EQUAL" value="1"/>
<MOUSEBUTTONINPUT button="LEFT" behaviour="RELEASE"/>
<VARIABLE id="LONG" function="SET" value="0"/>
<REFERENCE behaviour="STOP" idref="LongBlink_OR_ShortBlink"/>
</CONDITION>
</START>
<MAIN>
<WAIT time="650"/>
<MOUSEBUTTONINPUT button="LEFT" behaviour="PRESS"/>
<VARIABLE id="LONG" function="SET" value="1"/>
</MAIN>
<END>
<CONDITION>
<VARIABLECONDITION id="LONG" condition="NOT_EQUAL" value="1"/>
<MOUSEBUTTONINPUT button="LEFT" behaviour="PRESS"/>
<WAIT time="50"/>
<MOUSEBUTTONINPUT button="LEFT" behaviour="RELEASE"/>
<VARIABLE id="LONG" function="SET" value="0"/>
</CONDITION>
</END>
</MACRO>