As promised, I’ll post a short sample on how to manage windows using AutoHotkey.
One of the major annoyances in the latest versions of Skype was that the Skype Home window kept popping up when in compact mode, and there was no way to disable this behavior.
With AutoHotkey, a small “monitoring” script can be created that closes Skype Home and minimizes the main window back to the system tray. Just right-click the AutoHotkey tray icon, and select “Edit This Script”. Paste the following code before any hotkey definition, save and select “Reload This Script”.
; #########################################################################
; # Close Skype Home #
; #########################################################################
SetTitleMatchMode, 1
while, true
{
if WinExist("Skype Home")
{
WinClose, Skype Home
PostMessage, 0x112, 0xF060,,, Skype ; 0x112 = WM_SYSCOMMAND, 0xF060 = SC_CLOSE
}
Sleep, 30000
};
The script will check whether the Skype Home window exists every 30 seconds, then closes it. The tricky bit was finding how to minimize the main window, because WinClose didn’t work. The answer was in the manual: this PostMessage line is the same as clicking the ‘X’ button, which effectively minimizes the main window back to the system tray.
As you can see, after learning the syntax it’s not hard to manage windows and interact with them using AutoHotkey. The only limit is your creativity!