Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Katoh on January 20, 2009, 05:50:46 AM

Title: Button not working with script
Post by: Katoh on January 20, 2009, 05:50:46 AM
Good evening to all.
I have a little dilemma I just cant resolve.
Using screen4 I altered the original (programme run screen) buy adding One button on the bottom called Tool Zero.
Buy using the VB script editor I wrote a script that has a small macro that allows for tool zeroing. through the editor the macro works well. I have saved it under macros as file M301 No probs there. In the MDI screen I can manually type M301 in the input and the macro runs no hassles.
My trouble is here I cant assign the Macro to the button I put in to the screen. I only get a Script er Compile Error.
Ive read through other posts to no avail.
Any Thoughts
Katoh
Title: Re: Button not working with script
Post by: Greolt on January 20, 2009, 06:02:48 AM
Did you use the following as the button script?

Code "M301"
Title: Re: Button not working with script
Post by: Katoh on January 20, 2009, 06:31:48 AM
Thanks
Thats all it was.
Title: Re: Button not working with script
Post by: Greolt on January 20, 2009, 07:59:03 AM
You're welcome.   :)