EasyIni syntax

Get help with using AutoHotkey and its commands and hotkeys
zcooler
Posts: 455
Joined: 11 Jan 2014, 04:59

EasyIni syntax

04 Jun 2017, 02:20

Hi,
Im having a hard time converting this IniRead command with this ternary operator into EasyIni syntax https://autohotkey.com/boards/viewtopic.php?f=6&t=5522

Have tried pretty much everything I could think of. EasyIni seems to be using sError to avoid defaulting into ERROR. How should i do this?

Ini:
[Recording Service]
Tooltip=1
Recurse=0
SortFilter=|American|Berg|Divers|Gold divers|Gold rush|Ice|Kitchen|Mannen|Mythbusters|Mästarnas|queens|Robinson|Rules|Solsidan|Sommar|SVT1 HD|True detective|unfinished|Wheeler
SortRev=1
SortTimeRev=0
AllFiles=0
TSFiles=1
AVIFiles=0
MP4Files=0
MKVFiles=0
WMVFiles=0
MPGFiles=0
SRTFiles=0
SUBFiles=0
MP3Files=0

Code: Select all

Global IniKeys := ["Tooltip", "Recurse", "SortFilter", "SortRev", "SortTimeRev", "AllFiles", "TSFiles", "AVIFiles"
                 , "MP4Files", "MKVFiles", "WMVFiles", "MPGFiles", "SRTFiles", "SUBFiles", "MP3Files"]	
	
	For Each, Key In IniKeys {
      ;IniRead, Value, %SettingsIni%, %IniSec%, %Key%, % (Key = "AllFiles" ? 1 : (Key = "SortFilter") ? "|" : 0)
	  Value := vTestIni[IniSec][Key] (Key = "AllFiles" ? 1 : (Key = "SortFilter") ? "|" : 0)
	  msgbox % IniSec "`n" Key "=" Value
    }

Return to “Ask For Help”

Who is online

Users browsing this forum: Google [Bot], labrint, RubbeH and 56 guests