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
Rotary Encoder or Switch
Re: Rotary Encoder or Switch
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.
If there's no support for current time in ms in some Active script component, I may add this call to HidMacros object.
Petr Medek
LUAmacros author
LUAmacros author