 return
 ;-------------------------------------------------------
 
+;=======================================================
+; FOR AZERTY LAYOUT
+;=======================================================
+
 ;-------------------------------------------------------
 ; Send backtick when pressing "²"
 ;-------------------------------------------------------
-#If
+#If EnableAzertyShortcuts
 +SC029::Send {U+0060} ; `
-;-------------------------------------------------------+;-------------------------------------------------------
+
+;-------------------------------------------------------
+; Send capital accented letters
+;-------------------------------------------------------
+#If EnableAzertyShortcuts
+^+9::Send {U+00C7} ; Ç
+^+0::Send {U+00C0} ; À
+^+7::Send {U+00C8} ; È
+^+2::Send {U+00C9} ; É
+;-------------------------------------------------------

!Space::Send !+^{=}
; With the down button of the mouse
#If
XButton1::Send !+^{)}
^RButton::Send !+^{)}
;-------------------------------------------------------

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

;-------------------------------------------------------
; Cycle through open windows with the mouse
;-------------------------------------------------------
#If ; All special Alt-tab actions are not affected by #IfWin or #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
