#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 458, 339, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 168, 232, 113, 41)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
For $i = 255 To 0 Step -1
WinSetTrans($Form1, "", $i)
Sleep(50)
Next
For $i = 0 To 255
WinSetTrans($Form1, "", $i)
Sleep(50)
Next
EndSwitch
WEnd