 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
bob3150
Joined: 03 May 2005 Posts: 44
|
Posted: Fri Jun 09, 2006 10:28 am Post subject: How to prevent Gui from flicker |
|
|
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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3910 Location: Bremen, Germany
|
Posted: Fri Jun 09, 2006 10:32 am Post subject: |
|
|
Specify "Hide" as an option of the gui. _________________ Ciao
toralf  |
|
| Back to top |
|
 |
bob3150
Joined: 03 May 2005 Posts: 44
|
Posted: Fri Jun 09, 2006 10:35 am Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6836 Location: France (near Paris)
|
Posted: Fri Jun 09, 2006 10:50 am Post subject: |
|
|
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 |
|
 |
bob3150
Joined: 03 May 2005 Posts: 44
|
Posted: Fri Jun 09, 2006 11:34 am Post subject: |
|
|
| Thank you this is what I was searching for. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|