Code: Select all
#t::
WinSet, AlwaysOnTop, Toggle, A
Return
Code: Select all
#t::
WinSet, AlwaysOnTop, Toggle, A
Return
Code: Select all
q:: ;set current window to always-on-top (set any previous window to not always-on-top)
WinGet, hWnd, ID, A
;WinGetClass, vWinClass, % "ahk_id " hWnd
;if (vWinClass = "Shell_TrayWnd")
; return
if (hWndOnTopLast = hWnd)
return
else if hWndOnTopLast
WinSet, AlwaysOnTop, Off, % "ahk_id " hWndOnTopLast
hWndOnTopLast := hWnd
WinSet, AlwaysOnTop, On, % "ahk_id " hWnd
return
Users browsing this forum: No registered users and 299 guests