|
JWhitney Wanderer
Joined: 20 Oct 2006 Posts: 51
|
Posted: Mon Apr 29, 2013 8:56 pm
Opening and closing #WINDOWs with aliases/command line input |
I have a separate HUD window that contains gauges and other info. I'd like to be able to open and close via aliases, instead of having to open and close it manually. #T+/#T- enable and disable the items contained WITHIN the window's settings, but doesn't hide the window frame itself, which is my goal.
Is there any way to do this? |
|
|
|
Daern Sorcerer
Joined: 15 Apr 2011 Posts: 809
|
Posted: Mon Apr 29, 2013 9:14 pm |
#window "windowname", #close "windowname".
|
|
|
|
JWhitney Wanderer
Joined: 20 Oct 2006 Posts: 51
|
Posted: Mon Apr 29, 2013 9:35 pm |
Ha, of course it would be something so simple!
Thank you Daern! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Apr 29, 2013 10:08 pm |
For added control, there is also the #MAKEWINDOW command as well as the FRAME tag from the MXP specs. This allows you to change things such as position (the top and left coordinates) and dimension (width and height), as well as scrollbars, docking state, etc so you can tailor your window to the text you wish to show. Not sure if you can access stuff like minimize/maximize, but if not you can always create a clickable link using the SEND tag that changes the width and height.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
|
|