Jump to content
The simFlight Network Forums

Lua Autoexecute?


Recommended Posts

hi

testing

[Auto.PMDG747-400]

1=Lua pmdg747setview

in my ini

It's not working

Lua does a reset_view for my pmdg 747, that is pointing to low in panel view, and issues a 66147 VIEW_RESET or/and ctrl-space

filename is pmdg747setview.LUA containing:

-- reset view 66147 VIEW_RESET

ipc.control(66147)

ipc.keypress(90,13)

when I (re)load the pmdg747, no View_reset is done

tried

1=Lua pmdg747setview.lua

and - of course - the seperate lines

ipc.control(66147)

or

ipc.keypress(90,13)

so what am I missing? thx mt

Link to comment
Share on other sites

when I (re)load the pmdg747, no View_reset is done

A reload won't do it. For any of the aircraft-specific actions to occur, whether it be loading Keys, Buttons, Axes, Calibrations, or Auto macros and plug-ins, FSUIPC has to see a change of aircraft.

Additionally, because quite often an aircraft load takes a while, and FSUIPC might receive the notification before it is complete, you may need to consider putting a delay (ipc.sleep(...0) before any control which is supposed to affect the drawn cockpit rather than merely internal switch settings which are pretty much set early on.

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.