• How can I show the changing status in the TrayTip, i.e. instead of saying "has switched", to properly say "is now 'Always On Top'" or "the 'Always On Top' setting has been turned off"
• Can I capture the name of the Window to which I am applying the Always On Top so that the TrayTip can say what is being acted upon. e.g. "The selected Windows Explorer window is now set to 'Always On Top'" / "The selected Chrome window has had its Always On Top flag turned off"?
Code: Select all
; If DeskPins is installed, use that for Ctrl-F12, otherwise, use AutoHotkey method
#If NotDeskPins()
^F12::
WinSet, AlwaysOnTop, , A
TrayTip, Current Window has switched Always on top, Press again to switch setting
SoundBeep, 500, 5
return
#If
#ifWinActive ahk_exe chrome.exe ; Only allow if Chrome is the active window
F8::
WinSet, AlwaysOnTop, , A
TrayTip, Current Window has switched Always on top, Press again to switch setting
SoundBeep, 500, 5
return
#If
NotDeskPins() {
process,exist,deskpins.exe
return !errorlevel
}