ID:558933
 
(See the best response by DarkCampainger.)
How do I close a window without using the close button?
Best response
You can use winshow(), or you can use winset() to set the is-visible property to false.
Thanks again DarkCampainger.
winset("[window].[control]","is-visible=false")

The control_id can be a window name, or in a "[window].[control]" format, or just the control ID as long as it is unique.

is-visible=false will close the window
is-visible=true will open the window