오토핫키를 이용해서 이미지를 화면에서 Fade in/ Out 하는 방법에 대한 소스입니다.
3초후에 페이드하웃하여 닫힌 후 구이가 실행되게 하고 싶습니다.
이렇게 구현해보고 싶은 분들에게는 꿀팁이 될 것입니다.
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
Gui, Add, Button, Default gTest, 페이드 인/아웃 테스트
Gui, Show
Gui, 2:Margin, 0,0
Gui 2:+LastFound
GUI_ID:=WinExist()
Gui, 2:-Caption +AlwaysOnTop +Border
Gui, 2:Add, Picture, , c:\imgsave\hello.jpg
Gui,2:Show, AutoSize Hide, Animated Splash Window - Demo
return
Test:
DllCall("AnimateWindow","UInt",GUI_ID,"Int",1000,"UInt","0xa0000")
Sleep 300
DllCall("AnimateWindow","UInt",GUI_ID,"Int",1000,"UInt","0x90000")
return
GuiClose:
ExitApp
유용한 자료가 될 것 같군요.