;ClickToDesktop.ahk ; Click on the desktop to hide all windows, ; or click at the top of the screen. ; Click again to unhide. ;Skrommel @ 2008 #SingleInstance,Force #NoEnv SendMode,Input SetWorkingDir,%A_ScriptDir% SetWinDelay,0 CoordMode,Mouse,Screen applicationname=ClickToDesktop Gosub,MENU WinMinimizeAllUndo hidden=0 Return ~LButton:: MouseGetPos,mx,my,mwin,mctrl WinGetClass,class,ahk_id %mwin% Return ~LButton Up:: If (my=0 And mx>A_ScreenWidth/4 And mx