AutoHotkey Community

It is currently May 26th, 2012, 12:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: September 10th, 2008, 8:36 pm 
Offline

Joined: September 19th, 2005, 1:31 am
Posts: 115
What's wrong with this line?

Code:
IniRead, x, % A_ScriptDir . "PThud.ini" , LabelPositions, x%A_Index%


I'm trying to read a variable (x1 or x2 or ...) from a ini file located in the A_scriptDir....

I use

Code:
If !FileExist(A_ScriptDir . "PThud.ini")
earlier in the script and it works great, so I'm confuzed...

TIA!

Edit: Solved!

Missing the "\" in the file path (A_ScriptDir doesn't include it) :oops:

Corrected:
Code:
If !FileExist(A_ScriptDir . "\PThud.ini")
IniRead, x, % A_ScriptDir . "\PThud.ini" , LabelPositions, x%A_Index%


Last edited by ProsperousOne on September 10th, 2008, 8:43 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2008, 8:40 pm 
Online
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8776
Code:
IniRead, x, % A_ScriptDir . "\PThud.ini" , LabelPositions, x%A_Index%

_________________
URLGet - Internet Explorer based Downloader
StartEx - Portable Shortcut Link


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2008, 8:44 pm 
Offline

Joined: September 19th, 2005, 1:31 am
Posts: 115
UR 2 QUICK SKAN!!!!\

:!:

thanks!


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, kkkddd1, RUBn, StepO and 20 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