+LButton:: [COLOR=#008000]; Shift + LButton hotkey.[/COLOR]
MouseGetPos,,, win [COLOR=#008000]; Get window under mouse.[/COLOR]
[COLOR=#008000]; If this window is the taskbar, mode:="", otherwise mode:="{Blind}".[/COLOR]
mode := WinExist("ahk_class Shell_TrayWnd ahk_id " win) ? "" : "{Blind}"
Send %mode%{LButton Down} [COLOR=#008000]; Click down, filtering out Shift if mode="".[/COLOR]
KeyWait LButton [COLOR=#008000]; Wait for button to be physically released.[/COLOR]
Send %mode%{LButton Up} [COLOR=#008000]; Click up.[/COLOR]
return