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 

force and expression and ini read

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



Joined: 19 Sep 2005
Posts: 115

PostPosted: Wed Sep 10, 2008 7:36 pm    Post subject: force and expression and ini read Reply with quote

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) Embarassed

Corrected:
Code:

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


Last edited by ProsperousOne on Wed Sep 10, 2008 7:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Wed Sep 10, 2008 7:40 pm    Post subject: Reply with quote

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

_________________
URLGet - Internet Explorer based Downloader
Back to top
View user's profile Send private message Send e-mail
ProsperousOne



Joined: 19 Sep 2005
Posts: 115

PostPosted: Wed Sep 10, 2008 7:44 pm    Post subject: Reply with quote

UR 2 QUICK SKAN!!!!\

Exclamation

thanks!
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