Jump to content
The simFlight Network Forums

writeLvar problem


Seb17

Recommended Posts

Hello.
I am using registered FSCUIP 7 with MSFS. I have a problem that I cannot resolve with LUA:
This works well : CSTR on !

image.png.a67b5df7f015b5cfa4656aef554aaf44.png

I have cstr.lua

ipc.writeLvar("H:A320_Neo_MFD_BTN_CSTR_1", 1)

image.png.3a1455f5486045724e6bb85ef0ba19ac.png

image.png.d04c4e7bae3189f2900791e9f1cc8695.png

And CSTR does not turn on...

Any idea please ?

Thx

Link to comment
Share on other sites

2 hours ago, Seb17 said:

This works well : CSTR on !

image.png.a67b5df7f015b5cfa4656aef554aaf44.png

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.