AutoHotkey Community

It is currently May 27th, 2012, 7:23 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: June 9th, 2006, 11:28 am 
Offline

Joined: May 3rd, 2005, 1:05 pm
Posts: 44
I want to fade in a window with the following code but it flickers before it fade in.
Code:
Gui, Show, h%GuiHeight% w%GuiWidth% x%GuiX% y%GuiY%, %MainWnd%
Loop, 50
{
    If A_Index = 50
        TransCount = 255
    Else
        TransCount := A_Index * 5
   
    WinSet, Transparent, %TransCount%, %MainWnd%
}

What I have to change that it nicely fades in?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2006, 11:32 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
Specify "Hide" as an option of the gui.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2006, 11:35 am 
Offline

Joined: May 3rd, 2005, 1:05 pm
Posts: 44
I have tried the following which was not working
Code:
Gui, Show, h%GuiHeight% w%GuiWidth% x%GuiX% y%GuiY% Hide, %MainWnd%
WinSet, Transparent,0,  %MainWnd%
Gui, Show, %MainWnd%
Loop, 50
{
    If A_Index = 50
        TransCount = 255
    Else
        TransCount := A_Index * 5
   
    WinSet, Transparent, %TransCount%, %MainWnd%
}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2006, 11:50 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
http://www.autohotkey.com/forum/viewtop ... ight=clime
Code:
Gui Add, Text, , Ghostly Effect!
Gui +LastFound
WinSet, Transparent, 0
Gui, Show, h500 w500, Ghostly
Loop, 50
{
    If A_Index = 50
        TransCount = 255
    Else
        TransCount := A_Index * 5

    WinSet, Transparent, %TransCount%, Ghostly
}

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2006, 12:34 pm 
Offline

Joined: May 3rd, 2005, 1:05 pm
Posts: 44
Thank you this is what I was searching for.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: oldbrother, sjc1000, thor, Yahoo [Bot] and 52 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group