Anonymous wrote:
and want to display the number code and the countries..
If you like, look at one of my other works. There are more solutions to that, but I show you my old way to work with ini files:
http://www.autohotkey.com/forum/viewtopic.php?t=46226
This examples awaits an ini file in same folder with this content:
Code:
[section]
128= Taiwan
136= Korea
144= Hong Kong
Code:
#NoEnv
#Warn
SendMode, Input
SetWorkingDir, %A_ScriptDir%
ini_load(ini, "myini.ini")
; Get a list of all key names under section "section".
keys := ini_getAllKeyNames(ini, "section")
; Display all key names, which are saved as a comma separated list.
Loop, Parse, keys, `,
{
MsgBox %A_LoopField%
}
; Get and display each associated value for all keys.
Loop, Parse, keys, `,
{
MsgBox % ini_getValue(ini, "section", A_LoopField)
}
You need the Basic Ini String Library-Library, if you want to use that example.