Sign in to follow this  
Followers 0
Laetterman

help needed for AnimateWindow

3 posts in this topic

hi guys,

is it possible to use the fade-out effect for more than one window at the same time?

#include <GUIConstants.au3>

DIM $gui[2]

$gui[0] = GUICreate("Gui0", 300, 300, 10, 10 )
GUISetState()
$gui[1] = GUICreate("Gui1", 300, 300, -1, -1, BitOr($WS_POPUP, $WS_BORDER), BitOr($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW))
GUISetState()

Sleep(1000)

DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $gui[0], "int", 1000, "long", 0x00090000);fade-out

thanx!

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>

DIM $gui[2]

$gui[0] = GUICreate("Gui0", 300, 300, 10, 10 )
GUISetState()
$gui[1] = GUICreate("Gui1", 300, 300, -1, -1, BitOr($WS_POPUP, $WS_BORDER), BitOr($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW))
GUISetState()

Sleep(1000)

For $i = 0 to 1
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $gui[$i], "int", 1000, "long", 0x00090000);fade-out
Next



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

the two windows should fadeout -at the same time-, not one after an other!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0