I've made some research but I can't figure out how to solve my problem :
When I select a .INI file and make an IniRead, it always returns an error.
I am sure I am missing something and that's why I'm asking the boards for help ...
Here's the script (UTF-8 without BOM):
Code: Select all
;==================================================
; GUI
;==================================================
Gui, Add, Button, h25 w150 vOpen_LogFile gButt_OpenLog, Open Logfile
Gui, Show, Autosize, INI TEST
return
;==================================================
;LABELS
;==================================================
Butt_OpenLog:
; SetWorkingDir, logs
FileSelectFile, temp_FileName,,, Please choose a previous IM log file from the logs folder,
IniRead, temp_IM_number, %temp_FileName%, Header, IM_number
MsgBox, temp_FileName = %temp_FileName%`ntemp_IM_number = %temp_IM_number%
Return
GuiEscape:
GuiClose:
ExitApp
Return
Code: Select all
[Header]
IM_number=IM11223344
Obviously, there'll be more than a single line in my INI file but I need to get this fixed before going any further.
Thank you !