Code: Select all
IniRead, OutputVar, Images.txt, Epiales, key
if (OutputVar = "") {
FileSelectFile, SelectedFile, 3, , Open a file, Images (*.jpg; *.png; *.jpeg)
Gui, Add, Picture,x15 y40 w470 h450, %SelectedFile%
IniWrite, %SelectedFile%, Images.txt, Epiales, key
}
else
IniRead, OutputVar, Images.txt, Epiales, key
Gui, Add, Picture,x15 y40 w470 h450, %OutputVar%
Return
![Hit my head against the wall. :headwall:](./images/smilies/headwall.gif)
Text file just has the Section - Epiales and the key is the url to the image.