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 Fade in without showing window before?

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



Joined: 17 May 2007
Posts: 66

PostPosted: Tue Jan 15, 2008 1:24 pm    Post subject: How to Fade in without showing window before? Reply with quote

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
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 2526
Location: Australia, Qld

PostPosted: Tue Jan 15, 2008 2:06 pm    Post subject: Re: How to Fade in without showing window before? Reply with quote

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
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 66

PostPosted: Tue Jan 15, 2008 2:28 pm    Post subject: Reply with quote

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
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