Jump to content
The simFlight Network Forums

writeLvar problem


Seb17
 Share

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • 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.