The script from my last post I assigned to my switch position in AAO with "Assigned Buttons" and there via a key down event.
For "MAN" I use the script:
2 (>L:var_surfaceDeiceSwitch, Number
1000 (>L:var_surfaceDeiceTimer, Number)
3 (>L:var_surfaceDeiceSwitch, Number)
and I assigned it to the other position of my switch with another button assignment via key down event.
For the centered off position I use the script
0·(>L:var_surfaceDeiceTimer,·Number)
1·(>L:var_surfaceDeiceSwitch,·Number)
and I added two seperate button assignments via key up event to this script for the upper and the lower switch position.