#include <GUIConstants.au3>
FileInstall('Optimal.jpg', @TempDir & '\Optimal.jpg')
GUICreate('MyGUI', 385, 145)
GUICtrlCreatePic(@TempDir & '\Optimal.jpg', 0, 0, 385, 145)
GUICtrlSetState(-1, $GUI_DISABLE)
$nButton = GUICtrlCreateButton('*click*', 150, 100, 85, 30)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
FileDelete(@TempDir & '\Optimal.jpg')
Exit
Case $nButton
MsgBox(64, 'Info', '*click*')
EndSwitch
WEnd