hi, since a new version of TillaGoto introduces new features, but also overrides any previously set settings, i decided to bring up this lil subroutine, which may be added to the main tillaGoto script.
it needs to be invoked after the public variables definition atm this is around line #128 with
Simply add this codeblock to the tillaGoto script, so the previous mentioned gosub run will work, too
; TillaGoto IniSaver
; (w) Feb 2010 by derRaphael / Licensed under EUPL 1.1 or later
; see http://ec.europa.eu/idabc/eupl for a version in your language
SplitPath, A_ScriptName,,,, OutNameNoExt
IniFileName := OutNameNoExt ".ini"
tg_matchWindows := "sActiveWindow,sScintillaClass,sPathMatching"
tg_appearance := "bTrayIcon,iGUIWidth,iGUIHeight,iMargin,iTransparency,"
tg_hotkeys := "uSummonGUI,uGoBack,uGoForward,uGotoDef"
tg_behvaiour := "bFilterComments,bQuickMode,bMatchEverywhere,bUseMButton,iCancelWait,"
tg_sections := "matchWIndows,appearance,hotkeys,behaviour"
tg_readIni := ( FileExist( IniFileName ) )
Loop, Parse, tg_sections, @,
tg_currentSection := A_LoopField
Loop, Parse, tg_%tg_currentSection%, @,
tg_currentName := A_LoopField
tg_currentValue := %tg_currentName%
If ( tg_readIni )
IniRead, %tg_currentName%, %IniFileName%, %tg_currentSection%, %tg_currentName%, %tg_currentValue%
IniWrite, %tg_currentValue%, %IniFileName%, %tg_currentSection%, %tg_currentName%
the code is meant to do two things: on 1st run it creates an ini file and dumps all set public variables into it. on each run afterwards, it overrides the public default variables by the values found in the ini. so ... if a future version of tillaGoto is to be published, it will keep your previously set values.