Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: ftec on May 12, 2011, 09:18:24 AM

Title: Run a script when Mach loads
Post by: ftec on May 12, 2011, 09:18:24 AM
Is it possible and how to run a macro from file when Mach loads?

Thanks,
/Risto
Title: Re: Run a script when Mach loads
Post by: ger21 on May 12, 2011, 11:30:41 AM
Not sure, but you can add it to the initialization string and run it the first time you press reset.
Title: Re: Run a script when Mach loads
Post by: ftec on May 12, 2011, 11:51:43 AM
Wonderful workaround, thanks Gerry!

/Risto
Title: Re: Run a script when Mach loads
Post by: DaveCVI on May 12, 2011, 01:12:53 PM
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.pdf

and look up ScreenSetLoad.

Dave
Title: Re: Run a script when Mach loads
Post by: ftec on May 12, 2011, 02:03:25 PM
Could be what I'm looking after, Thanks Dave!

/Risto