Page 1 of 1

Rotary Encoder or Switch

Posted: 05 Apr 2013, 14:12
by Aeroworx
I am trying to implement a rotary encoder as a script. Turning clockwise, the encoder will press A then B, anti-clockwise will press B then A.

Thus, keypress A followed by keypress B should increase my OBS (VOR1_OBI_INC) and B followed by A should decrease OBS (VOR1_OBI_DEC).

I can only think of using the If...Then...Else Statement, I am not sure how.

Johan

Re: Rotary Encoder or Switch

Posted: 08 Apr 2013, 07:51
by admin
Timestamp and global variable I would say.
If there's no support for current time in ms in some Active script component, I may add this call to HidMacros object.