mtjoeng Posted November 28, 2009 Report Posted November 28, 2009 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
Pete Dowson Posted November 28, 2009 Report Posted November 28, 2009 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
Recommended Posts