GUICtrlSetImage grafik einfügen

  • Hallo
    Ich habe ein Prop. mit "GUICtrlSetImage" .
    Was ist daran falsch? ?(


    [autoit]


    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <ScreenCapture.au3>
    #Region ### START Koda GUI section ### Form=c:\programme\autoit3\scite\koda\forms\grafigvorhanden.kxf
    $Form1 = GUICreate("Form1", 147, 100, 100, 1, $WS_POPUP, 0)
    $Pic1 = GUICtrlCreatePic("", 1, -1, 144, 40, BitOR($GUI_SS_DEFAULT_PIC,$SS_SUNKEN))
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    _Bild() ;Start
    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    EndSwitch
    WEnd
    ;---------------
    Func _Bild()
    _ScreenCapture_Capture("C:\Test\test.png",20,20,100,50)
    GUICtrlSetImage($Pic1,"C:\Test\test.png") ;<=== DA SOLLTE IN $Pic1 DIE BILD-DATEI " Test.png 2 ERSCHEINEN
    EndFunc

    [/autoit]

    Danke für eure hilfe
    Silvermoon

  • Probieres es mal damit:

    Auch am Arsch geht ein Weg vorbei...

    ¯\_(ツ)_/¯