Desktoptop - A small tool that float desktop icons on the top

Post your working scripts, libraries and tools for AHK v1.1 and older
dog_god
Posts: 4
Joined: 12 May 2022, 21:43

Desktoptop - A small tool that float desktop icons on the top

Post by dog_god » 19 Jun 2022, 02:03

【sorry for my poor english】

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.
420992c6701000946d9835e3bd3eb0d9ea17b832.gif
420992c6701000946d9835e3bd3eb0d9ea17b832.gif (499.13 KiB) Viewed 1406 times
5a33ab5b5cb89d9b396bad85a79598edca98d60d.gif
5a33ab5b5cb89d9b396bad85a79598edca98d60d.gif (437.1 KiB) Viewed 1406 times


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


dog_god
Posts: 4
Joined: 12 May 2022, 21:43

Re: Desktoptop - A small tool that float desktop icons on the top

Post by dog_god » 19 Jun 2022, 03:46

someone may have a better code to achieve the same function——without the need of background change.

please post it here,thx.

Skrell
Posts: 302
Joined: 23 Jan 2014, 12:05

Re: Desktoptop - A small tool that float desktop icons on the top

Post by Skrell » 23 Jun 2022, 12:15

This is a GREAT idea!

User avatar
vSky
Posts: 80
Joined: 30 May 2022, 10:13

Re: Desktoptop - A small tool that float desktop icons on the top

Post by vSky » 25 Jun 2022, 03:11

dog_god wrote:
19 Jun 2022, 02:03
【sorry for my poor english】

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.

420992c6701000946d9835e3bd3eb0d9ea17b832.gif

5a33ab5b5cb89d9b396bad85a79598edca98d60d.gif



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

b0Bomu_546b6e1b38ea27a0be89a1b87340fba0_00-00-00_00-00-10_1.gif
b0Bomu_546b6e1b38ea27a0be89a1b87340fba0_00-00-00_00-00-10_1.gif (402.52 KiB) Viewed 1145 times

dog_god
Posts: 4
Joined: 12 May 2022, 21:43

Re: Desktoptop - A small tool that float desktop icons on the top

Post by dog_god » 28 Jun 2022, 07:02

@vSky
you have to set your desktop background as color #010203, or a picture which is mostly colored by #010203.

User avatar
vSky
Posts: 80
Joined: 30 May 2022, 10:13

Re: Desktoptop - A small tool that float desktop icons on the top

Post by vSky » 28 Jun 2022, 22:55

dog_god wrote:
28 Jun 2022, 07:02
@vSky
you have to set your desktop background as color #010203, or a picture which is mostly colored by #010203.
Can you share a sample wallpaper?

dog_god
Posts: 4
Joined: 12 May 2022, 21:43

Re: Desktoptop - A small tool that float desktop icons on the top

Post by dog_god » 29 Jun 2022, 09:50

@vSky
背景.png
背景.png (26.15 KiB) Viewed 843 times

User avatar
vSky
Posts: 80
Joined: 30 May 2022, 10:13

Re: Desktoptop - A small tool that float desktop icons on the top

Post by vSky » 29 Jun 2022, 10:50

dog_god wrote:
29 Jun 2022, 09:50
@vSky背景.png
I was embarrassed that it was that simple. :) When I saw the color code, I thought it was a different process. Anyway, thanks for sharing.

Post Reply

Return to “Scripts and Functions (v1)”