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 fails - allways get "ERROR" Value?!

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
twhyman



Joined: 07 Dec 2005
Posts: 339

PostPosted: Tue Mar 09, 2010 8:49 am    Post subject: iniread fails - allways get "ERROR" Value?! Reply with quote

Hi,

When running the following code I get the value "Error":
Genre_Renamer.ahk
Code:

Ini_File=%A_ScriptDir%\Genre_Renamer.ini

IniRead, MediaPath, %Ini_File%,Settings,Media_Path

msgbox, %MediaPath%


Genre_Renamer.ini
Code:
[Settings]
Media_Path=d:\series


I just don't get it why I get the error value of iniread....
Rolling Eyes what am I doing wrong!?
_________________
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
Murx
Guest





PostPosted: Tue Mar 09, 2010 8:57 am    Post subject: Reply with quote

Is it the same if you hard code the path?
Back to top
twhyman



Joined: 07 Dec 2005
Posts: 339

PostPosted: Tue Mar 09, 2010 9:02 am    Post subject: Reply with quote

what do you mean hard code the path?

If you mean ini path, then yes the same error.
_________________
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
Murx
Guest





PostPosted: Tue Mar 09, 2010 9:54 am    Post subject: Reply with quote

Working fine for me! Shocked
Back to top
wooly_sammoth



Joined: 12 May 2009
Posts: 634
Location: Gloucester UK

PostPosted: Tue Mar 09, 2010 10:17 am    Post subject: Reply with quote

Also works fine for me.

(I saved both the ini and the script to my desktop
Back to top
View user's profile Send private message Visit poster's website
twhyman



Joined: 07 Dec 2005
Posts: 339

PostPosted: Tue Mar 09, 2010 10:28 am    Post subject: Reply with quote

Hi,

Found the problem.

The ini file is in UTF-8 format, Revreting it back to ANSI solved the problem.

I will post a bug in AHK_L post.

Thanks for helping,
Twhyman
_________________
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Tue Mar 09, 2010 10:30 am    Post subject: Reply with quote

twhyman wrote:
The ini file is in UTF-8 format, Revreting it back to ANSI solved the problem. I will post a bug in AHK_L post.
Already discussed, see the various posts/solutions about it. Edit: and of course include the fact you use AHK_L next time Wink
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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