Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: tantan on April 20, 2008, 07:12:19 AM

Title: some VB questions
Post by: tantan on April 20, 2008, 07:12:19 AM
hi,

i just started with VB programming in Mach3 (version 2.63). in "general config" i switched "run marco pump" on.

but i have the following questions:

1. my macrocode runs but only if i start it manually. how can i let it run continuously when mach starts.
2. i want an extra button on a standard mach screen (lathe) to jump to my own developed screen. how can i edit de default mach screens.
3. i have a button and a button script on my own developed mach screen. but when i press the button (with my mouse) the VB buttonscript does not run?

thanks,

antoine
the netherlands
Title: Re: some VB questions
Post by: Bodini on April 20, 2008, 08:33:39 AM
1. my macrocode runs but only if i start it manually. how can i let it run continuously when mach starts.
2. i want an extra button on a standard mach screen (lathe) to jump to my own developed screen. how can i edit de default mach screens.
3. i have a button and a button script on my own developed mach screen. but when i press the button (with my mouse) the VB buttonscript does not run?

1. name it "macropump.m1s" and put it in c:\mach\macros\mach3mill (or whatever profile folder you're using).  you then have to restart mach for it to take effect.  *edit* oops, just noticed youre using lathe, that goes in a different folder.  i dont use lathe, so i dont know what that folder is.
2.  look up "screen4" on the mach site.  thats the program that edits screens.  its located in c:\mach\screen4.  there is a movie on how to use it on the site here.
3. make sure the button is hooked to the script.  that can be set in screen4 too (make it an on-screen script or run a seperate macro).
Title: Re: some VB questions
Post by: tantan on April 20, 2008, 01:28:25 PM
thank you,

just what i needed. i  :)

antoine