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

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.