Next to Insert, the Caps Lock key is a good alternative too, yet I prefer Insert.
I have another one, that is the key that has a power 2 and (with Shift) power 3. On my keyboard, it's located just above the Tab key and below Escape.
Code: Select all
^!F11:: ; <-- Update the TM1p.ini file with common settings
{
cPath_TM1p_ini := "C:\Users\WGielis\AppData\Roaming\Applix\TM1\tm1p.ini"
IfNotExist, %cPath_TM1p_ini%
    MsgBox, The TM1p.ini file could not be found at %cPath_TM1p_ini%. The program stops.
Else
    {
       IniWrite, ENG     , %cPath_TM1p_ini%, TM1, Language
       IniWrite, F       , %cPath_TM1p_ini%, TM1, AllowImportCAMClients
       IniWrite, ""      , %cPath_TM1p_ini%, TM1, MainWindowLayoutInfo
       IniWrite, ""      , %cPath_TM1p_ini%, TM1, SubsetWindowLayoutInfo
       IniWrite, ""      , %cPath_TM1p_ini%, TM1, SecurityAssignmentWindowLayoutInfo
       IniWrite, ""       , %cPath_TM1p_ini%, TM1, AdminHost
       IniWrite, ""       , %cPath_TM1p_ini%, TM1, DataBaseDirectory
       IniWrite, ""       , %cPath_TM1p_ini%, TM1, PreviousDataDirectories
       IniWrite, F        , %cPath_TM1p_ini%, TM1, DisplayControlCubes
       IniWrite, F        , %cPath_TM1p_ini%, TM1, DisplayApplications
       IniWrite, T        , %cPath_TM1p_ini%, TM1, DisplayCubes
       IniWrite, T        , %cPath_TM1p_ini%, TM1, DisplayDimensions
       IniWrite, F        , %cPath_TM1p_ini%, TM1, DisplayReplications
       IniWrite, T        , %cPath_TM1p_ini%, TM1, DisplayProcesses
       IniWrite, F        , %cPath_TM1p_ini%, TM1, DisplayChores
       IniWrite, F        , %cPath_TM1p_ini%, TM1, DisplayExplorerPropertiesWindow
       IniWrite, F        , %cPath_TM1p_ini%, TM1, ShowDynamicSubsetWarning
       IniWrite, F        , %cPath_TM1p_ini%, TM1, ShowAliasAttributeWarning
       IniWrite, T        , %cPath_TM1p_ini%, TM1, ShowChoresSchedulingWarning
       IniWrite, F        , %cPath_TM1p_ini%, TM1, ShowPickOperationWarning
       IniWrite, F        , %cPath_TM1p_ini%, TM1, ShowProcessUNASCIIWarning
       IniWrite, F        , %cPath_TM1p_ini%, TM1, ShowProcessUNODBCWarning
       IniWrite, F        , %cPath_TM1p_ini%, TM1, ShowAdminHostChangeWarning
       IniWrite, F        , %cPath_TM1p_ini%, TM1, AdvancedRulesEditor
       IniWrite, F        , %cPath_TM1p_ini%, TM1, IntegratedLogin
       IniWrite, F        , %cPath_TM1p_ini%, TM1, BrowseDisplayReadsRightToLeft
    }
}
return
Settings that do not exist in the ini file, are automatically added. Otherwise they are updated.
If you paste this code in Notepad++ it will be aligned regarding spaces.
Ctrl-Alt-F11 launches the code. The other possibility is pressing Insert and a userform pops up. Entering a certain number there also starts the tool.