Hi all, I am hoping there is someone out there who can help me, I am new to Linda and I am just trying to get to grips with LUA scripting so far with no luck at all. I am fine assigning fsx default buttons, but I have built myself an autopilot panel based on the Turbine Duke KFC225 auto pilot. most of the inputs are FSX default but there are three buttons that are not. I have extracted, using the Linda tracer, the following information, that appears when the VS button is pressed, what this button does when pressed with the mouse is to display the vertical speed for about 3 seconds and then reverts back to displaying the altitude.
-- Duke Auto pilot -- Press Vert speed button
[L] LVar: Alt_VS_Display_Toggle = 1 LUA.0: [L] LVar: ApVsButAnt = 1 LUA.0: [L] LVar: ApVsBut = 1 LUA.0: [L] LVar: SoftkeypressSound = 1 LUA.0: [L] LVar: VS_Click_Time = 63581841758.93 LUA.0: [L] LVar: SoftkeypressSound = 0 LUA.0: [L] LVar: Alt_VS_Display_Toggle = 0
I have written the function below but when I assign it to a button it does nothing, I would really appreciate some pointers on this as I have tried quite a few different ipc.writeLvar() assigns with absolutely no success at all, so I am obviously not doing it right.