May 14, 20251 yr Author 4 minutes ago, Lorby_SI said: As stated above, the LVars are missing the unit. You cannot just copy and paste simulator code. The sim doesn't need Units in LVars, but AAO does. The unit tells AAO that you want this variable to be sent to the simulator. Without a unit it is just an AAO internal calculation variable - so your script had no effect in the sim. 1 (L:AUTOPILOT_KAS297B_MODE, Number) - (>L:AUTOPILOT_KAS297B_MODE, Number) Do I save this a Script in AAO and then call it with S: in the Stream Deck app? Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
May 14, 20251 yr Commercial Member Just now, toby23 said: Do I save this a Script in AAO and then call it with S: in the Stream Deck app? There are two different ways to do the same thing. - You either use "S:" and copy/paste the code directly into the box of the SD action (nothing to do in AAO) - Or you create a script in AAO with this code and call it as "K:" "scriptgroup-scripttitle" from the StreamDeck The second option has the benefit that you can test your script in the AAO Editor. LORBY-SI
May 14, 20251 yr Author 4 minutes ago, Lorby_SI said: There are two different ways to do the same thing. - You either use "S:" and copy/paste the code directly into the box of the SD action (nothing to do in AAO) - Or you create a script in AAO with this code and call it as "K:" "scriptgroup-scripttitle" from the StreamDeck The second option has the benefit that you can test your script in the AAO Editor. Hmm, not sure where I have gone wrong but neither of those options are triggering the button action. Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
May 14, 20251 yr Commercial Member 15 minutes ago, toby23 said: Hmm, not sure where I have gone wrong but neither of those options are triggering the button action. The unit is a string literal. You type it exactly like it is. ", Bool", ", Feet", ", Knots" are all units. ", Number" is the generic unit, when you just need the value, without a conversion. When in doubt, use ", Number". You can just copy&paste my code above, you shouldn't have changed it. Edited May 14, 20251 yr by Lorby_SI LORBY-SI
May 14, 20251 yr Author 5 minutes ago, Lorby_SI said: A unit, like ", Number" is a string literal. You type it exactly like it is. ", Bool", ", Feet", ", Knots" are all units. ", Number" is the generic unit, when you just need the value, without a conversion. That works! Thank you Ryzen 5800X3D, 64GB RAM, RTX 4090, Windows 11Link to my: Dynamic Flight Dispatch Tool
May 14, 20251 yr Commercial Member Just now, toby23 said: That works! Thank you Please consider reading through the chapter "Scrpting" in the AAO manual. Click on the grey question mark at the top of the main AAO dialog. But - you've written code before and handled AAO variables, right? These LVars are no different. Edited May 14, 20251 yr by Lorby_SI LORBY-SI
Create an account or sign in to comment