 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
aaffe
Joined: 17 May 2007 Posts: 66
|
Posted: Tue Jan 15, 2008 1:24 pm Post subject: How to Fade in without showing window before? |
|
|
Hallo,
belonging to the fade out/fade in-Function on
http://www.autohotkey.com/forum/viewtopic.php?t=27316&highlight=fade
I have a question:
I donīt want to show the window, then fade out and fade in again, but I want first to fade in, then fade out.
But when I trie to do this, for a half second the window is always seen without transparency, then it disappears and just even then it fades in.
I donīt want that the window is shown before fading in.
Can I first set a transparency for a window and then show it for the first time with this transparency?
My example:
| Code: |
#Include FadeIn_FadeOut.ahk
SetBatchLines -1
SetWorkingDir %A_ScriptDir%
Gui,Show,Hide w599 h599,TEST
FadeIn("TEST",50)
Sleep 2000
FadeOut("TEST",50)
Exitapp
|
Thanks! |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 2526 Location: Australia, Qld
|
Posted: Tue Jan 15, 2008 2:06 pm Post subject: Re: How to Fade in without showing window before? |
|
|
| aaffe wrote: | | Can I first set a transparency for a window and then show it for the first time with this transparency? | Yes.
| the manual wrote: | | Hidden windows are not detected unless DetectHiddenWindows has been turned on. |
|
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 66
|
Posted: Tue Jan 15, 2008 2:28 pm Post subject: |
|
|
hy,
tanks, in between I found the solution:
| Code: |
Gui,Show, Hide w599 h599,TEST1
Gui +Lastfound
Alpha = 0
ST=100
Loop 52
{
WinSet,Transparent,%Alpha%
EnvAdd,Alpha,5
If ST != 0
Sleep %ST%
Gui,Show,REstore,%WinTitle%
}
|
|
|
| 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
|