Jump to content
The simFlight Network Forums

LUA SCRIPT FOR ATC WINDOW POSITIONING


codatcri
 Share

Recommended Posts

Hello, I want to have a button that, at the flight start or during a flight, opens ATC & VFR MAP & ... windows and put them in a specific position on my side screens.

I actually succeed in partially doing this using the script below:

ext.position("ATC", 0, 0, 33, 97, 4)
ext.position("VFR MAP", 33, 0, 63, 97, 4)
ext.position("NAVLOG", 0,0, 50, 97, 2)
ext.position("CHECKLIST", 50,0, 50, 97, 2)

what is missing is the previous step that is to get the window "external"

immagine.png.1f2d047bb764687d02df3fa6a6f0d836.png

Any idea?

Thanks.

Cristiano

Link to comment
Share on other sites

You could try an ext.state call, using either EXT_NRML or EXT_MAX, but I'm not sure those will undock the window. Otherwise maybe ext.postmessage, if you can determine what the windows message is to undock....Alternatively, if there is a keypress or key combination that does this, you could try sending those key commands using ext.sendkeys or ext.postkeys. Just some ideas to try, but I wouldn't expect too much....!

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.