Jump to content

help needed for AnimateWindow


Recommended Posts

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!

Link to comment
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


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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...