-﻿#NoTrayIcon
+#NoTrayIcon
 #Persistent
 #SingleInstance force
 #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.

;-------------------------------------------------------
; Cycle through open windows with the mouse
;-------------------------------------------------------
#If
~RButton & MButton::AltTabMenu
~RButton & WheelDown::AltTab
~RButton & WheelUp::ShiftAltTab
;-------------------------------------------------------

;-------------------------------------------------------
;  Adjust volume by scrolling the mouse wheel over the taskbar
;-------------------------------------------------------
MouseIsOver(WinTitle) {
    MouseGetPos,,, Win
    return WinExist(WinTitle . " ahk_id " . Win)
}

ShowOSD(CustomText) 
{
	SetTimer, HideOSD, 500  ; Hide after specified delay
	GuiControl, Text, OSDTextValue, %CustomText%  ; Set text

;-------------------------------------------------------

;-------------------------------------------------------
; Toggle bookmarks toolbar in Firefox when pressing "`"
;-------------------------------------------------------
#If WinActive("ahk_class MozillaWindowClass")
SC029::
