On Windows most application windows have a system menu that can be made visible by left mouse click on the upper left corner of a window, or by pressing
Here is an example script that demonstrates how to interact with this system menu:
Please note that the above is a Squish for Qt test script, but the general approach works for all Squish editions if there is a hooked application and if the Squish license key contains a Squish for Windows license.
Please also note that the openWindowsSystemMenu() function is a bit inaccurate and inflexible because it looks for and uses the first application window that it finds. So if your application shows multiple windows you might want to improve this function a bit, for example by allowing to pass a window title to it.