#uselib "user32.dll"
#func SetLayeredWindowAttributes "SetLayeredWindowAttributes" int, int, int, int
#func SetWindowLong "SetWindowLongA" int, int, int
#cfunc GetWindowLong "GetWindowLongA" int, int, int
#define ctype RGB(%1 = 0, %2 = 0, %3 = 0) (int(%1) | int(%2)<<8 | int(%3)<<16)
bgscr 0, ginfo_dispx, ginfo_dispy, 0, 0, 0
SetWindowLong hWnd, -20, GetWindowLong(hWnd, -20) | 0x80000
repeat 64
SetLayeredWindowAttributes hWnd, RGB(0,0,0), limit(256 - cnt * 4, 0, 255), 2
await 16
loop
end