Report post
Posted November 15, 2011
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).
I found this in a earlier post Peter is that Possible and if so what is the syntax to undock say the GPS window i tried ipc.undock("GPS") but that didn't work and I cant find it anywhere in the Lua documentation.
I have found that if I save the flight with all the windows undocked then run the lua script to place them that works but I thing an undock command would be tidier.
and lastly can I then force an "ALT Enter" from my Lua script
Thanks for all your help
Owen
Thanks for all the help guys