AutoHotkey Community

It is currently May 27th, 2012, 4:42 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: March 9th, 2010, 9:49 am 
Offline

Joined: December 7th, 2005, 8:29 am
Posts: 345
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....
:roll: what am I doing wrong!?

_________________
(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 9:57 am 
Is it the same if you hard code the path?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 10:02 am 
Offline

Joined: December 7th, 2005, 8:29 am
Posts: 345
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 10:54 am 
Working fine for me! :shock:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 11:17 am 
Offline

Joined: May 12th, 2009, 2:37 pm
Posts: 640
Location: Gloucester UK
Also works fine for me.

(I saved both the ini and the script to my desktop


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 11:28 am 
Offline

Joined: December 7th, 2005, 8:29 am
Posts: 345
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 9th, 2010, 11:30 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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 FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: 0x150||ISO, Bing [Bot], rbrtryn, Yahoo [Bot] and 67 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group