AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IniRead omits first line from ini file

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
csomh
Guest





PostPosted: Wed Apr 02, 2008 11:46 am    Post subject: IniRead omits first line from ini file Reply with quote

I`ve found this somehow strange. Lets have the folloving ahk code:

Code:
SetWorkingDir %A_ScriptDir%
#Persistent

^k::
IniRead, OutputVar, test.ini, Section, Key, NOT FOUND
MsgBox, %OutputVar%
Return


...and test.ini:

Code:
[Section]
Key=Key found


The hotkey will return NOT FOUND. But, if I add a blank or comment line before [Section], the hotkey works just fine. I couldn't find anything about this issue, and the IniRead example doesn't mention either.

AHK 1.0.47.06, winxp sp2
Back to top
tic



Joined: 22 Apr 2007
Posts: 1272

PostPosted: Wed Apr 02, 2008 6:47 pm    Post subject: Reply with quote

wors fine for me
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group