Global Const $AW_SLIDE = 0x00040000 ;使用滑动类型, 默认为该类型. 当使用 AW_CENTER 效果时, 此效果被忽略
Global Const $AW_ACTIVATE = 0x00020000 ;激活窗口, 在使用了 AW_HIDE 效果时不可使用此效果
Global Const $AW_BLEND = 0x00080000 ;使用淡入效果
Global Const $AW_HIDE = 0x00010000 ; 只与其他效果组合使用
Global Const $AW_CENTER = 0x00000010 ;与 AW_HIDE 配合使用效果为窗口向内重叠, 单独使用(等同于与默认的AW_SLIDE一起使用)窗口向外扩展
Global Const $AW_HOR_POSITIVE = 0x00000001 ;自左向右显示窗口
Global Const $AW_HOR_NEGATIVE = 0x00000002 ;自右向左显示窗口
Global Const $AW_VER_POSITIVE = 0x00000004 ; 自顶向下显示窗口
Global Const $AW_VER_NEGATIVE = 0x00000008 ; 自下向上显示窗口
Global Const $AW_FADE_IN = 0x00080000 ;fade-in
Global Const $AW_FADE_OUT = 0x00090000;fade-out
Global Const $AW_SLIDE_IN_LEFT = 0x00040001 ;slide in from left
Global Const $AW_SLIDE_OUT_LEFT = 0x00050002 ;slide out to left
Global Const $AW_SLIDE_IN_RIGHT = 0x00040002 ;slide in from right
Global Const $AW_SLIDE_OUT_RIGHT = 0x00050001 ;slide out to right
Global Const $AW_SLIDE_IN_TOP = 0x00040004 ;slide-in from top
Global Const $AW_SLIDE_OUT_TOP = 0x00050008 ;slide-out to top
Global Const $AW_SLIDE_IN_BOTTOM = 0x00040008 ;slide-in from bottom
Global Const $AW_SLIDE_OUT_BOTTOM = 0x00050004 ;slide-out to bottom
Global Const $AW_DIAG_SLIDE_IN_TOPLEFT = 0x00040005 ;diag slide-in from Top-left
Global Const $AW_DIAG_SLIDE_OUT_TOPLEFT = 0x0005000a ;diag slide-out to Top-left
Global Const $AW_DIAG_SLIDE_IN_TOPRIGHT = 0x00040006 ;diag slide-in from Top-Right
Global Const $AW_DIAG_SLIDE_OUT_TOPRIGHT = 0x00050009 ;diag slide-out to Top-Right
Global Const $AW_DIAG_SLIDE_IN_BOTTOMLEFT = 0x00040009 ;diag slide-in from Bottom-left
Global Const $AW_DIAG_SLIDE_OUT_BOTTOMLEFT = 0x00050006 ;diag slide-out to Bottom-left
Global Const $AW_DIAG_SLIDE_IN_BOTTOMRIGHT = 0x0004000a ;diag slide-in from Bottom-right
Global Const $AW_DIAG_SLIDE_OUT_BOTTOMRIGHT = 0x00050005 ;diag slide-out to Bottom-right
Global Const $AW_EXPLODE = 0x00040010 ;explode
Global Const $AW_IMPLODE = 0x00050010 ;implode
HotKeySet("{ESC}", "Terminate")
$hwnd = GUICreate("Animate Window", 800, 600,-1,-1,0x80000000) ; 0x80000000: WS_POPUP
GUISetBkColor(0xFFEBCD)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_BLEND)
GUISetState()
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", BitOR($AW_VER_POSITIVE, $AW_HIDE))
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_VER_NEGATIVE)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", BitOR($AW_SLIDE, $AW_HOR_NEGATIVE, $AW_HIDE))
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", BitOR($AW_SLIDE, $AW_HOR_POSITIVE))
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", BitOR($AW_HIDE, $AW_CENTER))
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_CENTER)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_ACTIVATE)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", BitOR($AW_HIDE, $AW_IMPLODE))
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_FADE_IN);fade-in
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_FADE_OUT);fade-out
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_IN_LEFT);slide in from left
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_OUT_LEFT);slide out to left
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_IN_RIGHT);slide in from right
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_OUT_RIGHT);slide out to right
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_IN_TOP);slide-in from top
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_OUT_TOP);slide-out to top
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_IN_BOTTOM);slide-in from bottom
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_SLIDE_OUT_BOTTOM);slide-out to bottom
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_IN_TOPLEFT);diag slide-in from Top-left
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_OUT_TOPLEFT);diag slide-out to Top-left
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_IN_TOPRIGHT);diag slide-in from Top-Right
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_OUT_TOPRIGHT);diag slide-out to Top-Right
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_IN_BOTTOMLEFT);diag slide-in from Bottom-left
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_OUT_BOTTOMLEFT);diag slide-out to Bottom-left
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_IN_BOTTOMRIGHT);diag slide-in from Bottom-right
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_DIAG_SLIDE_OUT_BOTTOMRIGHT);diag slide-out to Bottom-right
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_EXPLODE);explode
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 2000, "long", $AW_IMPLODE);implode
Func Terminate()
Exit
EndFunc
不过有些效果貌似没什么区别。