TaskBar_SetAttr - translucent / blur / coloring Windows TaskBar

Post your working scripts, libraries and tools
User avatar
jNizM
Posts: 1982
Joined: 30 Sep 2013, 01:33
GitHub: jNizM

TaskBar_SetAttr - translucent / blur / coloring Windows TaskBar

11 Jan 2017, 09:24

TaskBar_SetAttr
Make the Windows 10 Taskbar translucent / blur / coloring

Image


Source:
TaskBar_SetAttr.ahk (GitHub)


Example:

Code: [Select all] [Download] GeSHi © Codebox Plus

TaskBar_SetAttr(1, 0xc1e3c791)    ; <- Set gradient    with color 0xd7a78f ( rgb = 0x91c7e3 ) and alpha 0xc1

TaskBar_SetAttr(2, 0xa1e3c791) ; <- Set transparent with color 0xd7a78f ( rgb = 0x91c7e3 ) and alpha 0xa1

TaskBar_SetAttr(2) ; <- Set transparent

TaskBar_SetAttr(3) ; <- Set blur

TaskBar_SetAttr(0) ; <- Set standard value

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus



What can be blured?:

Code: [Select all] [Download] GeSHi © Codebox Plus

Shell_TrayWnd             -> Main TaskBar
Shell_SecondaryTrayWnd -> 2nd TaskBar (on multiple monitors)



Limitations:
Run only on Windows 10


Preview:
Spoiler



Contributing
- thanks to qwerty12
- thanks to AutoHotkey Community
[AHK] 1.1.25.01 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
guest3456
Posts: 1852
Joined: 09 Oct 2013, 10:31

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

11 Jan 2017, 10:04

should'nt it be named "SetTaskbarBlur" ?

nice work

User avatar
jNizM
Posts: 1982
Joined: 30 Sep 2013, 01:33
GitHub: jNizM

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

11 Jan 2017, 10:11

thx & good idea... I try to figure out what can be blured too with this function, depends on this I will rename the function
updates / info will be follow in top post
[AHK] 1.1.25.01 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
Helgef
Posts: 1232
Joined: 17 Jul 2016, 01:02

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

11 Jan 2017, 11:20

jNizM wrote:I try to figure out what can be blured too with this function

You can make similiar stuff with DWM. Specifically

Code: [Select all] [Download] GeSHi © Codebox Plus

Dwmapi.dll\DwmExtendFrameIntoClientArea
Dwmapi.dll\DwmEnableBlurBehindWindow

Example code,

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Image
I find these functions quite awkward to work with, the blur effect is awful if you don't have transparency enabled in windows.
(Only tested on win7)
User avatar
Pinkfloydd
Posts: 102
Joined: 13 Apr 2014, 18:32
Location: Argentina

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

11 Jan 2017, 11:39

very nice function !
User avatar
joedf
Posts: 5244
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

11 Jan 2017, 21:42

Very interesting! :+1:
User avatar
jNizM
Posts: 1982
Joined: 30 Sep 2013, 01:33
GitHub: jNizM

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

12 Jan 2017, 02:02

Guest wrote:Doesn't seem to work on W7.
Tested just with win8.1 and win10



Pinkfloydd wrote:very nice function !
thank you =)



joedf wrote:Very interesting! :+1:
thank you =)



Helgef wrote:I find these functions quite awkward to work with, the blur effect is awful if you don't have transparency enabled in windows.
(Only tested on win7)
Your function does not work with win10
Gui returns white without blur / translucent effect
[AHK] 1.1.25.01 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
User avatar
jNizM
Posts: 1982
Joined: 30 Sep 2013, 01:33
GitHub: jNizM

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

12 Jan 2017, 06:04

Update:
I found out how to:
- set taskbar blur (translucent)
- set taskbar transparent
- to color taskbar
- to color transparent taskbar

Few more tests and later I update code
[AHK] 1.1.25.01 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you
Helgef
Posts: 1232
Joined: 17 Jul 2016, 01:02

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

12 Jan 2017, 13:27

Guest wrote:Doesn't seem to work on W7.

With Aero theme and transparency enabled on win 7, your taskbar will look like this.
jNizM wrote:Your function does not work with win10
Gui returns white without blur / translucent effect

I haven't used win10, but I think you need to have Aero theme (or an equivalent) and or transparency enabled. Window turning white is expected under some conditions, I don't really remember when though, I experimented with this a while back. As I mentioned, it's a bit awkward to work with. ;)
User avatar
davebrny
Posts: 25
Joined: 05 Dec 2016, 06:26
GitHub: davebrny

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

15 Jan 2017, 13:29

jNizM wrote:Update:
I found out how to:
- set taskbar blur (translucent)
- set taskbar transparent
- to color taskbar
- to color transparent taskbar

Few more tests and later I update code



nice one. i tried making the taskbar fully transparent before with Classic Shell but some of the white tray icons are hard to see if there is any white in the desktop background. maybe its a bit better when its blurred like this but some transparency options would be sweet. i have my taskbar at 50% at the moment and it still looks pretty good and the icons stand out even if there is something white in the background
Helgef
Posts: 1232
Joined: 17 Jul 2016, 01:02

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

15 Jan 2017, 16:01

Helgef wrote:With Aero theme and transparency enabled on win 7, your taskbar will look like this.

I tested this on win10 now, and my statement above is not entirely true, it is similiar though.

jNizM wrote:Update:
I found out how to:
- set taskbar blur (translucent)
- set taskbar transparent
- to color taskbar
- to color transparent taskbar

Few more tests and later I update code

Also,

Code: [Select all] [Download] GeSHi © Codebox Plus

gui, +hwndguiId
gui, color, 000001
gui, show, w300 h200, Glass
WinSet,TransColor, 000001, % "ahk_id " guiId

Swap hTaskBar for guiId and it blurs the gui, similar to my image a few posts up. (tested on win10)
User avatar
moefr01
Posts: 25
Joined: 25 Nov 2015, 09:01
Location: Germany

Re: SetWindowBlur - Blurify (translucent) Windows TaskBar

19 Jan 2017, 13:08

looks very nice with grayscaled desktoppicture (fully stretched)... thank you, jNizM
tested successfully on Windows 10 Pro 64Bit 1607 Build 14393.693 german
I coded a timer within, so I havn't got to reload after pressing win/find-keys:

SetTimer, Bluring, 250
Return
Bluring:
SetWindowBlur()
Return

...would be thankful for any other solution!

Nice and extraordinary: you can change the look of the frames of running apps in taskbar by switching colours (desktop-settings)
User avatar
jNizM
Posts: 1982
Joined: 30 Sep 2013, 01:33
GitHub: jNizM

Re: TaskBar_SetAttr - translucent / blur / coloring Windows TaskBar

20 Jan 2017, 06:04

Update:
- new github repo
- new function
- coloring taskbar
- transparent taskbar
- colord transparent taskbar
- blured taskbar
- more examples
[AHK] 1.1.25.01 x64 Unicode
[WIN] 10 Pro (Version 1607 | Build 14393.693) x64
My GitHub Profile | Donations are appreciated if I could help you

Return to “Scripts and Functions”

Who is online

Users browsing this forum: No registered users and 13 guests