EnableExplicit Define whandle RunProgram("notepad.exe") Delay(2000) whandle = FindWindow_("notepad",#Null) SetWindowLongPtr_(whandle,#GWL_EXSTYLE,GetWindowLongPtr_(whandle,#GWL_EXSTYLE) | #WS_EX_LAYERED) SetLayeredWindowAttributes_(whandle, 0, (255 * 50) / 100, #LWA_ALPHA)