HI,
If you are using a recent mach release, there is a script that is loaded (if it is present) whenever mach loads a screen set.
For more info get the programmer's ref manual from here
http://machsupport.com/docs/Mach3_V3.x_Macro_Prog_Ref.pdfand look up ScreenSetLoad.
Dave