@Defines@Define CREATE_ERROR "Unable to create file AMIAUTO.CFG"
@Defines@Define SAVE_ERROR "Unable to save file AMIAUTO.CFG"
@Defines@Define READ_ERROR "Unable to read file AMIAUTO.CFG."
@Defines@Define OPEN_ERROR "Unable to open file AMIAUTO.CFG."
@Function@Function Main()
If GetOpenFileCount() = 0<:F
@Footnote@Allocation of global variables requires an open document. If no document is currently open, this will create a document with the default style sheet, no contents and no run macro.
@Outline3@<:f240,2Times New Roman,255,0,0>If instr(0,UCASE$(txt),"WELCOME.SMM")=0<:F
@Footnote@While reading the current list of autorun macros, the WELCOME macro is not loaded. This is because it is going to be added to the list if the user doesn't select the "Don't show ..." checkbox, so this way we easily avoid duplication of the macro in the aut
orun list. This also prevents someone from placing just WELCOME in the list without calling WELCOME.SMM!Welcome()
>
@Outline4@<:#288,10800><:f240,2Times New Roman,255,0,0>i = i + 1
@Outline4@<:#288,10800><:f240,2Times New Roman,255,0,0>setglobalarray("loadem", i, txt)
@Outline3@<:#288,10800><:f240,2Times New Roman,255,0,0>Endif<:f>
@Footnote@Not only does this load the list of autorun macros, but also keeps Welcome from being loading in the list so that we either don't have it duplicated or we remove it if the user has selected that option.
@Footnote@Not only does this load the list of autorun macros, but also keeps Welcome from being loading in the list so that we either don't have it duplicated or we remove it if the user has selected that option.