AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Setting transparency for Desktop icons?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Tester



Joined: 06 Jul 2006
Posts: 48
Location: Poland

PostPosted: Thu Aug 10, 2006 1:15 am    Post subject: Setting transparency for Desktop icons? Reply with quote

Is possibility to set transparency for Desktop icons?

Unfortunately following code not work well:
Code:
DetectHiddenWindows, on
WinSet, Transparent, 128, ahk_class Progman
it makes wallpaper too transparent and gives me a strange Desktop redraw artifacts.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Thu Aug 10, 2006 10:12 am    Post subject: Reply with quote

Interesting.
a) it worked fine for me without impacting the wallpapers appearance
b) with '0' you'll hide all icons in one go Smile and a double mouse click on the desktop opens the StartMenu Cool
c) with a value > '0' (eg. '1', means still hidden style) an icons tooltip will appear once you hoover over its current/hidden screen coord.
Back to top
Tester



Joined: 06 Jul 2006
Posts: 48
Location: Poland

PostPosted: Thu Aug 10, 2006 10:41 am    Post subject: Reply with quote

I have found that some redraw artifacts have been made by PowerPro running simultaneously, but others artifacts still appears (it seems that icons SysListView321 control handle transparency in other way than remaining desktop area). And dimming (making semi-transparent) wallpaper is still the biggest disadvantage.
BoBo wrote:
a) it worked fine for me without impacting the wallpapers appearance
What system do you use? On my XP system at transparency=128 wallpaper is dimmed too(mixed in a half with background color - black in my case).
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Thu Aug 10, 2006 11:07 am    Post subject: Reply with quote

Code:
DetectHiddenWindows, on
Loop, 6
{
   WinSet, Transparent, 128, ahk_class Progman
   Sleep, 1000
   WinSet, Transparent, 64, ahk_class Progman
   Sleep, 1000
   WinSet, Transparent, 0, ahk_class Progman
   Sleep, 1000
   WinSet, Transparent, off, ahk_class Progman
   Sleep, 1000
   }
I've to use our preset company wallpaper which is 85% black. It could be that you (better your eyes) interpret the 'fading' as if the black will change. But I don't think thats real.

XP/SP2/AHK 1.0.42.00
Back to top
BoBo
Guest





PostPosted: Thu Aug 10, 2006 11:09 am    Post subject: Reply with quote

What about this ...
Code:
WinSet, Redraw,, ahk_class Progman
?
Back to top
BoBo
Guest





PostPosted: Thu Aug 10, 2006 11:13 am    Post subject: Reply with quote

Quote:
(mixed in a half with background color - black in my case).
Are you using
Code:
WinSet, TransColor, Color [N]
with black Shocked
Back to top
Tester



Joined: 06 Jul 2006
Posts: 48
Location: Poland

PostPosted: Thu Aug 10, 2006 12:05 pm    Post subject: Reply with quote

BoBo wrote:
WinSet, Redraw,, ahk_class Progman
Thanks. This helps redraw desktop without some artifacts, but I have still problems if a window with topmost atrribute set is displayed on the desktop, then after setting transparency to OFF all around this window isn't redrawn with wallpaper but with black. But after moving this topmost window it reveals wallpaper beneath it. If I maximize and then minimize any window then wallpaper back to its fullscreen state. But I will play with Redraw parameter later and post results here.

edit: hmmm, it seems that after setting transparency for progman all visible windows should be redrawn....?
I have saw somewhere on the forum topic about refreshing desktop - so I will look at it later and try it with this code.

But on wallpaper issue I have found that setting transparency to progman works inversely on wallpaper:
Code:
WinSet, Transparent, off, ahk_class Progman   ;sets icons and wallpaper opaque
WinSet, Transparent, 254, ahk_class Progman   ;sets icons (almost) opaque and wallpaper is gone... all desktop is black
WinSet, Transparent, 128, ahk_class Progman   ;sets icons semi-tramsparent and wallpaper semi-transparent too
WinSet, Transparent, 15, ahk_class Progman   ;sets icons (almost) transparent and wallpaper (almost) opaque
WinSet, Transparent, 0, ahk_class Progman   ;sets icons transparent and wallpaper fully opaque

Adding
Code:
WinSet, TransColor, 000000, ahk_class Progman
before setting transparency don't change for me anything in handling wallpaper's strange transparency behaviour.

I have try this too
Code:
WinHide, ahk_class Progman
WinShow, ahk_class Progman
so desktop is redrawn fine after this, but disadvantage is icons flashing.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group