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 

How to prevent Gui from flicker

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



Joined: 03 May 2005
Posts: 44

PostPosted: Fri Jun 09, 2006 10:28 am    Post subject: How to prevent Gui from flicker Reply with quote

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?
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3910
Location: Bremen, Germany

PostPosted: Fri Jun 09, 2006 10:32 am    Post subject: Reply with quote

Specify "Hide" as an option of the gui.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bob3150



Joined: 03 May 2005
Posts: 44

PostPosted: Fri Jun 09, 2006 10:35 am    Post subject: Reply with quote

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%
}
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Fri Jun 09, 2006 10:50 am    Post subject: Reply with quote

http://www.autohotkey.com/forum/viewtopic.php?t=10339&highlight=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
}

_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
bob3150



Joined: 03 May 2005
Posts: 44

PostPosted: Fri Jun 09, 2006 11:34 am    Post subject: Reply with quote

Thank you this is what I was searching for.
Back to top
View user's profile Send private message
Display posts from previous:   
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