Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: giannis121 on May 26, 2007, 06:12:03 AM

Title: Stop File & M1000 in one button...
Post by: giannis121 on May 26, 2007, 06:12:03 AM
Guys,
sorry for interrupting so often the forum for silly questions!
But please be patient as long as i'm a beginer....

Now, i want to stop the file (exaclty as stop button does),
and simultaneously deactivate some outputs.
So i write at the vb script:
code ("Stop File")
code ("M1008")
.
.
.
code("bla bla")

But it doesn't work.

Any ideas?
Title: Re: Stop File & M1000 in one button...
Post by: Brian Barker on May 27, 2007, 01:48:04 PM
If you would like to stop the file you will need to do a

DoButton(xx)  'xx = the button number found in the customization Wiki

Also you will have to Pause the file first...

Then it will run the code that you would like to do

Hope that helps
Brian
Title: Re: Stop File & M1000 in one button...
Post by: giannis121 on June 01, 2007, 09:01:57 AM
Thats it!
Thanks Brian!