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>