So meinte ich das, und so funktioniert's auch.
Code:
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
;//prüfen ob bild exisitiert, wenn nicht dann runterladen
If Not FileExists(@ScriptDir & "/Bild.jpg") Then InetGet("http://www.findix.com/data/adpix/picture_L/tanga-unterwaesche-9591.jpg", @ScriptDir & "/Bild.jpg")
;//warten bis datei erstellt ist
Do
Sleep(10)
Until FileExists("Bild.jpg")
;//gui mit bild erstellen
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 621, 445, 193, 125)
$Pic1 = GUICtrlCreatePic(@ScriptDir & "/Bild.jpg", 0, 0, 620, 444, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd