justin48 Posted November 15, 2011 Report Posted November 15, 2011 Pete, Running 6 touch screens with the PMDG 737ngx in Prepar3d. We have them working, but are wondering, is there a LUA or another type of script that could be written to assign various panels to the monitors so we didn't have to sit and physically drag panels to monitors every time we boot up? It would be great to be able to write several scripts, one for each type of aircraft flown, so that there could be a set-up for a Baron, a Concorde, a 737, etc. Justin
Pete Dowson Posted November 15, 2011 Report Posted November 15, 2011 Running 6 touch screens with the PMDG 737ngx in Prepar3d. We have them working, but are wondering, is there a LUA or another type of script that could be written to assign various panels to the monitors so we didn't have to sit and physically drag panels to monitors every time we boot up? I thought that one of the big "fixes" in Prepar3D over FSX and ESP was the handling of multiple displays, and that it did all this for you. The Lua ext library, added in the most recent update (4.747) can position and size UNDOCKED panel windows on specific monitors. So you could do it by saving flights with the panel windows undocked (they come back that way too), and having Lua scripts running via aircraft- or profile-specific [Auto] sections which then move the undocked windows around (identified by title). You need also to download the Lua library package (again), for the updated documentation. I've not found a way (yet) of operating the 'dock' and 'undock' options on panels by program, but I am working on it. I think it should work via a WM_COMMAND message, as that's normally how pop-up menus operate, so I'm experimenting down that route. [LATER] Your inquiry spurred me on. I've found out how to Undock a specific docked but visible panel window, as long as you know its name (title). So I'll be adding an ipc.undock function in the next update. (No "dock" or "re-dock" though -- can't find how to do thast. But I doubt that's so important). Regards Pete
justin48 Posted November 16, 2011 Author Report Posted November 16, 2011 Thanks, as always, for the quick answer. I'll have to do some experimenting with our setup. I'll let you know how we fare. Still trying to find the tricks and traps in Prepar3d as well. Cheers.
AeroHead Posted November 22, 2011 Report Posted November 22, 2011 HI Pete, Reading this post is very interesting for me, I have 4 displays (32" TV's) that I can create windows and resize them to create an outside cockpit view. But after saving the flight and loading the saved file, FSX does not remember where the displays where allocated, so my questions: 1. would this ula scrip work in the same way to assign my displays again? 2. Where could I find the ipc.undock example? the available version for download is 4.70(b)and not 4.747! (unless im looking in the wrong place) Thanks in advance for the help with this :) its proving to be a bit headache for me!!
Pete Dowson Posted November 23, 2011 Report Posted November 23, 2011 1. would this ula scrip work in the same way to assign my displays again? The Lua ext library will position and size undocked FS windows consistently as you wish. All you need to know is the title of each Window, as shown in the undocked title bar. 2. Where could I find the ipc.undock example? the available version for download is 4.70(b)and not 4.747! (unless im looking in the wrong place) The file downloadable from the Schiratti site is actually 4.745 -- the text hasn't been updated there. It isn't my site and I have no control. I'll get that sorted when I manage to get all the documentation fully updated and release a version 4.80. Meanwhile this forum and its subforums are under my control (within reason), and you'll find updated versions like 4.747 and the updated Lua package in the Download Links subforum, along with lots of other useful stuff. Please do browse the subforums, seems a lot of folks miss out on them altogether, which is a shame. Regards Pete
AeroHead Posted November 24, 2011 Report Posted November 24, 2011 Thanks Pete, Are there any example of an lua file with this?? or a good starting point for a novice like me? :i Thanks
Pete Dowson Posted November 25, 2011 Report Posted November 25, 2011 Are there any example of an lua file with this?? The updated Lua package from download Links contains an example called "TileSix.lua". It is listed as such in the Lua introductory document provided too, in the same package. Pete
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now