Seb17 Posted May 31, 2021 Report Share Posted May 31, 2021 Hello. I am using registered FSCUIP 7 with MSFS. I have a problem that I cannot resolve with LUA: This works well : CSTR on ! I have cstr.lua ipc.writeLvar("H:A320_Neo_MFD_BTN_CSTR_1", 1) And CSTR does not turn on... Any idea please ? Thx Quote Link to comment Share on other sites More sharing options...
Seb17 Posted May 31, 2021 Author Report Share Posted May 31, 2021 Auto answer : ipc.activateHvar("H:A320_Neo_MFD_BTN_CSTR_1") works fine Quote Link to comment Share on other sites More sharing options...
John Dowson Posted May 31, 2021 Report Share Posted May 31, 2021 2 hours ago, Seb17 said: This works well : CSTR on ! That is using a MobiFlight event. 2 hours ago, Seb17 said: I have cstr.lua ipc.writeLvar("H:A320_Neo_MFD_BTN_CSTR_1", 1) But here you are trying to write a Hvar as an lvar... 1 minute ago, Seb17 said: Auto answer : ipc.activateHvar("H:A320_Neo_MFD_BTN_CSTR_1") works fine Yes, you need to use ipc.activateHvar for hvars. Not that hvars to not have an associated value - you just trigger or activate them. Quote Link to comment Share on other sites More sharing options...
Seb17 Posted May 31, 2021 Author Report Share Posted May 31, 2021 thx John, I ended up understanding :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.