#include <FileConstants.au3>
#include <MsgBoxConstants.au3>
Example()
Func Example()
Local Const $sMessage = "Select a single file of any type."
Local $sFileOpenDialog = FileOpenDialog($sMessage, "Images\" & "\", "All (*.png)", $FD_FILEMUSTEXIST)
If @error Then
MsgBox($MB_SYSTEMMODAL, "", "No file was selected.")
FileChangeDir(@ScriptDir)
Else
FileChangeDir(@ScriptDir)
; Replace instances of "|" with @CRLF in the string returned by FileOpenDialog.
$sFileOpenDialog = StringReplace($sFileOpenDialog, "|", @CRLF)
MsgBox($MB_SYSTEMMODAL, "", "You chose the following file:" & @CRLF & $sFileOpenDialog)
EndIf
EndFunc
$picture = $sFileOpenDialog
Okey after many blinds shots already got it.
For those who don't know