1. I see sometimes that TSE macros are published and then they need to be added to the 'Autoload list' in order to run.
2. I myself basically never use the 'Autoload list' option.
3. Instead I put all the TSE macros that I have to run at startup in a separate single TSE startup macro.
4. Then I start that TSE startup macro using the TSE g32.exe command line option '-e'.
E.g.
5. Assumed advantages of this '-e' method:
1) I assume that is not really good practice as it will (I assume at this moment) e.g. not automatically be migrated from one TSE version to another version (e.g. migrating from TSE 4.50 RC23 to TSE 4.50 RC24). One probably has to manually put the TSE macros
back in the autoload list of that latest version migrated to.
2) Instead using the -e method you just recompile (as you always have to do after migration to another version) TSE yourstartupmacro.s and off you go, no more action required.
3) Having those TSE startup macros in an external file, one can much more easily build in some e.g. IF ENDIF, REPEAT UNTIL, WHILE ENDWHILE, ... logic.
E.g. IF <only some condition is met run that particular TSE macro in your single TSE startup macro>
While if you put it in the autoload list it will usually always run (or you must build in logic in that particular TSE macro which does some checking),
but externalizing it is in general the preferred way to go. One does not have to change / recompile the particular TSE macro itself thus only your startup TSE macro).
3) If wanting to switch off a particular TSE macro in the startup TSE macro, I just put '//' in front of the line,
save it and recompile it. Then it is not active anymore. (Also) fast and simple to implement.
4) Example of a TSE startup macro (not showing e.g. the IF ... ELSE ... ENDIF to check if certain conditions are met)
// ExecMacro( "initglob.mac" )
// ExecMacro( "dateincc.mac" )
// ExecMacro( "fileknal.mac" )
// ExecMacro( "menuknal.mac" )
// ExecMacro( "doenmenu.mac" )
// ExecMacro( "smen.mac" )
// ExecMacro( "taalmenu.mac" )
// ExecMacro( "qdbmenu.mac" )
// ExecMacro( "clipview.mac" )
ExecMacro( "initglob.mac" ) // adapt this to TSE v2.8, v3, v4 (as i.m is compiled for TSE v2.5 only)
// ExecMacro( "vmatch" ) // operation: view: brace: match: visual [kn, ri, sa, 28-02-2004 17:01:41] // [kn, ri, sa, 02-03-2013 01:17:09] // switched off again because it interferes with typing
ExecMacro( "initglob.mac" ) // adapt this to TSE v2.8, v3, v4 (as i.m is compiled for TSE v2.5 only)
ExecMacro( "c:\i.m" ) // adapt this to TSE v2.8, v3, v4 (as i.m is compiled for TSE v2.5 only) // [kn, ri, we, 07-12-2011 20:51:04]
ExecMacro( "colors.mac" ) // do not use in TSE v2.8, v3, v4, as it has its own color scheme
ExecMacro( "gotogfmo.mac" ) // gf: goto: mouse: click: double
ExecMacro( "video.mac" )
ExecMacro( "find.mac" )
ExecMacro( "clock.mac" ) // operation: view: time: clock // [kn, ri, we, 07-12-2011 20:12:23]
ExecMacro( "pcfsearc.mac" ) // operation: search: text: input: menu: pcfsearch // [kn, ri, we, 07-12-2011 20:12:25]
// ExecMacro( "searcint.mac" ) // operation: insert: clipboard: internet: url: search engine // [kn, ri, sa, 06-06-2009 17:55:58] (do not use it)
ExecMacro( "knudmenu.mac" ) // run my <F11> menu // [kn, ri, we, 07-12-2011 20:12:29]
ExecMacro( "cuamark.mac" ) // operation: select: mark: block: cuamark // [kn, ri, we, 07-12-2011 20:12:32] // disabled [kn, ri, we, 24-04-2024 19:00:00] // new [kn, ri, mo, 06-05-2024 15:50:51]
ExecMacro( "bookmark.mac" ) // must be run after knudmenu.mac has run, as that initializes the global variables [kn, zoe, tu, 13-03-2001 14:47:40]
// ExecMacro( "blocks.mac" ) // avoid this macro as it slows down your TSE extremely [kn, ri, th, 17-11-2022 12:30:51] / must be run after knudmenu.mac has run, as that initializes the global variables [kn, ri, mo, 08-08-2022 13:10:06]
// ExecMacro( "scratch.mac" ) // set the scratch buffer 'A', 'B', ..., 'Z', that becomes the default for copy/paste/cut [kn, ni, mo, 11-11-2002 15:25:52] // [kn, ri, sa, 06-06-2009 17:56:16] (do not use this, it is in Search -> 'Named clipboards' anyhow already)
ExecMacro( "gotorema.mac" ) // record: goto: case: main: goto: window: top // [kn, ri, we, 07-12-2011 20:12:37]
ExecMacro( "gotogfma.mac" ) // procedure/function: .gf: goto: name: main // [kn, ri, we, 07-12-2011 20:12:39]
ExecMacro( "gotogfmo.mac" ) // gf: goto: mouse: click: double // added [kn, ri, fr, 21-05-2004 22:55:14]
ExecMacro( "chanwicj.mac" ) // switch between open Microsoft Windows windows // added [kn, ri, su, 04-09-2005 03:46:32]
ExecMacro( "chansccs" ) // show if file changed in yellow color '*' on status bar // [kn, ri, we, 07-12-2011 20:12:42]
ExecMacro( "chanbopm" ) // box: change: input: prompt: main: right click mouse // [kn, ri, we, 07-12-2011 20:12:47]
// ExecMacro( "mouserightclick.mac" ) // right click // [kn, ri, we, 07-12-2011 20:12:50]
ExecMacro( "template.mac" ) // operation: run: template <CTRL><TAB> // [kn, ri, we, 07-12-2011 20:12:59]
ExecMacro( "complete" ) // expand macro // [kn, ri, we, 07-12-2011 20:13:01]
ExecMacro( "expand" ) // expand macro // [kn, ri, we, 22-02-2023 20:10:17]
ExecMacro( "insetecy" ) // auto complete keywords // [kn, ri, we, 07-12-2011 20:13:02]
ExecMacro( "state -r -q" ) // restore the old state [kn, ri, sa, 10-01-2009 23:17:39] // activated this again // [kn, am, we, 14-07-2010 12:02:18]