#uselib "user32.dll"
#func GetWindowLongA "GetWindowLongA" int , int
#func SetWindowLongA "SetWindowLongA" int , int , int
#func SetLayered "SetLayeredWindowAttributes" int , int , int , int
screen 0
title "テスト"
GetWindowLongA hwnd , -20
SetWindowLongA hwnd , -20 , stat | 0x00080000
l=0
repeat 100
SetLayered hwnd , 0 , L*255/100 , 2 //透明度指定
await 5 //ここを変えてフェードのスピードを変える
L++
loop
stop
フェードアウト:
#uselib "user32.dll"
#func GetWindowLongA "GetWindowLongA" int , int
#func SetWindowLongA "SetWindowLongA" int , int , int
#func SetLayered "SetLayeredWindowAttributes" int , int , int , int
screen 0
title "テスト"
GetWindowLongA hwnd , -20
SetWindowLongA hwnd , -20 , stat | 0x00080000
l=100
button "フェードアウト",*FadeOut
stop