Jump to content
The simFlight Network Forums

Key Stroke to mouse Interfacing


Recommended Posts

Hello Anyone!

I have purchased the Cera Bell 212 and 214 helicopters, great models! but interfacing them to my cockpit simulator has been a dispointment :?

All of the switches are mouse driven and the panel gauges are all XML.

Does anyone have these aircraft?

Has anyone figured a way FSUIPC, Mouse Macro, Lvar, to hook to these types of switches?

To engergize the ENGINE 1 Starter the variable is Engine 1 start = (L:starteng,enum) 1

Engine 2 start = (L:starteng,enum) -1

All the guages are in the FSX/Guages folder and are a .CAB file.

Am I to use a LUA script to send a "L:starteng,enum 1" and energize ENG1 starter?

Is there a way to edit a mouse macro to assign a keystroke to send "L:starteng,enum 1" to FSX to energize ENG1 starter?

Of course the same needs to be done for:

Generator 1 = (L:Genel,bool)

Generator 2 = (L:Gener,bool)

Engine 1 start = (L:starteng,enum) 1

Engine 2 start = (L:starteng,enum) -1

Inverter 1 = (L:Swinva, bool)

Inverter 2 = (L:Swinvb, bool)

Any help would sure be appreciated!

Gary

Link to comment
Share on other sites

Am I to use a LUA script to send a "L:starteng,enum 1" and energize ENG1 starter?

Is there a way to edit a mouse macro to assign a keystroke to send "L:starteng,enum 1" to FSX to energize ENG1 starter?

No. You are mixing up two completely separate methods. The "mouse macro" is a way of allowing a button or keypress to do the same as a mouse click by making FSUIPC actualiy call the C-coded routine in the C-coded gauge directly. That is not possible with XML gauges with no C-code nor even in C-coded gauges which don't abide by the structures Microsoft laid down for mouse rectangles -- as, in fact, in most Microsoft-written gauges.

You CAN use normal (not "mouse") FSUIPC macros to write to named L:variables though. This is described in the FSUIPC "Advanced Users" guide. Please look in the contents list. it is actually mentioned explicitly there. The actual information is towards the end, page 41 in my copy, but check your contents list.

You should note that writing the correct value to a local variable will change it, but whether the gauge takes any notice of that change is another matter. In many cases the variable is merely saving the state of the switch and not actually instigating the action associated with it.

Generally you'd be better off asking questions about using FSUIPC over in my FSUIPC Support Forum. I don't come here so often.

Regards

Pete

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.