December 13, 20223 yr Hello, I've spent ages trying to get this to work, so would appreciate some guidance please. I'm trying to assign one button to toggle the Runway Turnoff lights on the Fenix on/off. I've found the local variable which is: L:S_OH_EXT_LT_RWY_TURNOFF I can get it to work fine by setting the lights on with one button (1), and off with another button (0), but not as a toggle. I've tried adding this custom key-down events: 1 (L:S_OH_EXT_LT_RWY_TURNOFF, Number) - (>L:S_OH_EXT_LT_RWY_TURNOFF, Number) (L:S_OH_EXT_LT_RWY_TURNOFF, number) ! (>L:S_OH_EXT_LT_RWY_TURNOFF, number) Neither is working. I also notice that if I go back into the assignment and try to set it again to the Custom Event, it just shows: L:1 (L (1 (L) Thanks for any advice.
December 13, 20223 yr Commercial Member 26 minutes ago, RB74 said: I've tried adding this custom key-down events: What are "custom key down events"? Where exactly did you enter that code?? RPN code belongs into a script. "Scripting->Edit RPN Scripts". Give it a unique name and save it into a group of you choice. Then assign this script to your button. Edited December 13, 20223 yr by Lorby_SI LORBY-SI
December 13, 20223 yr Author Assigned Button > Add New Button Assigned button/key - set Key Down Event - Drop Down - Add custom event
December 13, 20223 yr Commercial Member 5 minutes ago, RB74 said: Key Down Event - Drop Down - Add custom event That is not what this is for. These dialogs are for entering native Simulator Events or Variables that you know the name of but AAO doesn't. They cannot contain code. RPN code like yours belongs in to a script, as described above. See AAO manual, chapter about "Scripting". Edited December 13, 20223 yr by Lorby_SI LORBY-SI
December 13, 20223 yr Author Thank you very much for the explanation. I understand now, and it is working as intended.
Archived
This topic is now archived and is closed to further replies.