here shows the effects (I bind the hotkey to mouse gesture draw_line_up.)
the code get the desktop on top, and hides the region which colored by #010203.
you can access and operate all your files on desktop quickly by a hotkey or a gesture, without closeing any of your work window.
notice:you have to set your desktop background as color #010203, or a picture which is mostly colored by #010203.
you can also change the code , so you can use any color.
Code: Select all
#singleinstance
global noww:=0
ww:=A_ScreenWidth
hh:=A_ScreenHeight
gui launch: New , , Q_launch
gui launch: +HwndMainHwnd
Gui launch: +AlwaysOnTop -Caption +ToolWindow
gui launch: Color, 010203
gui launch: Show,x0 y0 w%ww% h%hh%
WinSet, TransColor, 010203, Q_launch
WinGet, WinHwnd, ID , Program Manager
return
^f18::
!f::
{
if noww=0
{
DllCall("SetParent", "uint", WinHwnd , "uint", MainHwnd)
WinSet, AlwaysOnTop, On, "ahk_id "WinHwnd
WinSet, TransColor, 010203, "ahk_id "WinHwnd
noww:=1
}else
{
DllCall("SetParent", "uint", WinHwnd , "uint", 0 )
WinSet, AlwaysOnTop, Off , "ahk_id "WinHwnd
WinSet, TransColor, GGGGGG, "ahk_id "WinHwnd
noww:=0
}
}
return