 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ProsperousOne
Joined: 19 Sep 2005 Posts: 115
|
Posted: Wed Sep 10, 2008 7:36 pm Post subject: force and expression and ini read |
|
|
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)
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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Wed Sep 10, 2008 7:40 pm Post subject: |
|
|
| Code: | | IniRead, x, % A_ScriptDir . "\PThud.ini" , LabelPositions, x%A_Index% |
_________________ URLGet - Internet Explorer based Downloader |
|
| Back to top |
|
 |
ProsperousOne
Joined: 19 Sep 2005 Posts: 115
|
Posted: Wed Sep 10, 2008 7:44 pm Post subject: |
|
|
UR 2 QUICK SKAN!!!!\
thanks! |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|