t0ddie Posted June 18, 2005 Share Posted June 18, 2005 how would i make a gui fade on and off? (transparent to visible when you open it, and visible to transparent when you close it.) Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you. Link to comment Share on other sites More sharing options...
Ejoc Posted June 18, 2005 Share Posted June 18, 2005 WinSetTrans() maybe? Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs Link to comment Share on other sites More sharing options...
GaryFrost Posted June 18, 2005 Share Posted June 18, 2005 http://www.autoitscript.com/forum/index.ph...opic=12224&st=0 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
buzz44 Posted June 19, 2005 Share Posted June 19, 2005 I prefer to use a For...Next loop. With using DllCall(), whilst the window is fading it seems to be in $WS_EX_TOOLWINDOW extended style and then returns to normal. Also if you use the function above and your window transparency is set to something other then 0 ( or 255 depending on what your using) it doesn't fade at all and will just show. #include <GUIConstants.au3> $hwnd = GUICreate("My GUI") ; will create a dialog box that when displayed is centered WinSetTrans ($hwnd , "", 0) GUISetState () For $I = 0 to 255 Step 5 WinSetTrans($hwnd,"",$I) Sleep(1) Next Sleep(2000) For $I = 255 to 0 Step - 5 WinSetTrans($hwnd,"",$I) Sleep(1) Next qq Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now