The following example creates a Gui with a single button wich brings the SelectFile dialog box.
Gui, Loader: New
Gui, Loader: Add, Button, Default Center w220 vLOAD, LOAD
Gui, Loader: Show, AutoSize Center, Loader
return
LoaderButtonLOAD:
FileSelectFile, LoadedFile, , , ,
if ErrorLevel...