Code: Select all
NOTFOUND
or
NOTFOUND||
Code: Select all
/varset Radius ${Ini[@IniFile,Settings,Radius,NOTFOUND]}
Moderator: MacroQuest Developers
Code: Select all
NOTFOUND
or
NOTFOUND||
Code: Select all
/varset Radius ${Ini[@IniFile,Settings,Radius,NOTFOUND]}

Code: Select all
/declare INIFile global
/varset INIFile "D:\Backup\Downloads\macroquest2\Release\Macros\recipes.ini"
/echo ${Ini[@INIFile,wm,Cont,NOTFOUND]}
Code: Select all
[wm]
Cont="#sewing"
Comp0="mandrake root"
Comp1="mandrake root"
Code: Select all
// if (!strchr(pIniFile,'\\') && !strchr(pIniFile,'/'))// always insert macro path, screw whoever's using the absolute path.
sprintf(FileName,"%s\\%s",gszMacroPath,pIniFile);Code: Select all
if (pIniFile[0]!='\\' && !strchr(pIniFile,':'))
sprintf(FileName,"%s\\%s",gszMacroPath,pIniFile);
---> else
---> strcpy(FileName,pIniFile);