I need to make the active window always on top. How can I do this with AutoHotkey v2?
Hotkey is CTRL + SPACE:
^space::
{
WinSetAlwaysOnTop -1, "A"
}
Not all parameters are mandatory. -1
toggles the setting (e.g. OFF becomes ON) and "A"
tells it to use the active window (whichever has focus). You can also pass it the name of a window, like "Calculator"
.
Documentation: