Blink macro (click & drag)

Post Reply
Zathras
Posts: 68
Joined: Thu May 21, 2015 4:09 pm
Location: NY

Blink macro (click & drag)

Post by Zathras »

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.

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>
I also have a macro that will work for people using the dwell function if anyone wants it...
Last edited by Zathras on Wed Sep 05, 2018 4:47 pm, edited 1 time in total.
Harro
Posts: 33
Joined: Tue Sep 29, 2015 2:53 pm

Re: Blink macro (click & drag)

Post by Harro »

nice, liking this macro thanks.

You happen to know how to make it so the mouse won't click when you look off the screen ?

thanks for making this.
Zathras
Posts: 68
Joined: Thu May 21, 2015 4:09 pm
Location: NY

Re: Blink macro (click & drag)

Post by Zathras »

Cool, you're welcome, glad it was useful for somebody else.

No, sorry, can't do anything about the looking off screen. I think the camera just loses track of your eyes when you look off & misinterprets it as a blink.
Post Reply