Hello Guest it is April 23, 2024, 02:22:14 PM

Author Topic: Mach3 ShutDown  (Read 17827 times)

0 Members and 1 Guest are viewing this topic.

Offline Repmo

*
  •  54 54
    • View Profile
Mach3 ShutDown
« on: December 03, 2008, 08:18:16 PM »
I Use mach 3 with touch screen and the X was hard to push,

HOW CAN I SHUTDOWN mach 3 with VB buttons ??

I want same as if I push alt+f4

tanks
Fred

Offline Repmo

*
  •  54 54
    • View Profile
Re: Mach3 ShutDown
« Reply #1 on: December 05, 2008, 06:36:12 PM »
OEM 706,

tanks Brian

Fred

Offline Repmo

*
  •  54 54
    • View Profile
Re: Mach3 ShutDown
« Reply #2 on: December 17, 2008, 06:00:05 PM »
the OEM code 706  turn off mach3 without saving readout, 

Do you know how can I saving my Zeros  before  DOOEMBUTTON (706)

Offline Repmo

*
  •  54 54
    • View Profile
Re: Mach3 ShutDown
« Reply #3 on: January 02, 2009, 05:56:05 PM »
Up :)

How can I save DRO and LED before quit mach 3, with   DOOEMBUTTON (706)    I can quit mach3  but the readout and other DRO was not saved.... 

I had try    SaveWizard ()    but not seem to work....

help me :)

Fred



Re: Mach3 ShutDown
« Reply #4 on: April 13, 2009, 11:25:09 AM »
I Use mach 3 with touch screen and the X was hard to push,

HOW CAN I SHUTDOWN mach 3 with VB buttons ??

I want same as if I push alt+f4

tanks
Fred



It is possible to make so:

dim z as integer
z=shell("shutdown.exe -s -t 5",1)

I in such a way switch off a computer after the ending of work when I leave it for the night to work. Has made command M999 and has registered it in it :)

Offline Repmo

*
  •  54 54
    • View Profile
Re: Mach3 ShutDown
« Reply #5 on: April 17, 2009, 07:48:45 AM »
I Use mach 3 with touch screen and the X was hard to push,

HOW CAN I SHUTDOWN mach 3 with VB buttons ??

I want same as if I push alt+f4

tanks
Fred



It is possible to make so:

dim z as integer
z=shell("shutdown.exe -s -t 5",1)

I in such a way switch off a computer after the ending of work when I leave it for the night to work. Has made command M999 and has registered it in it :)


it work good ??  My problem with OEMcode 705 and 706  turn off computer but when I return in mach3, the zero of my last session was loose....

Re: Mach3 ShutDown
« Reply #6 on: April 18, 2009, 02:11:58 AM »
it work good ??  My problem with OEMcode 705 and 706  turn off computer but when I return in mach3, the zero of my last session was loose....

I have understood your problem :) yes in this variant of coordinate are not kept.

If to make this code
SendKeys " % {F4} "

That mach3 will be cut down as if on command Alt+F4, but it deduces a window of confirmation in which it is necessary to press the button yes. But during this moment the program does not give in to a script and it is impossible to press this button..

There is one exit will write the second separate program which to catch this window and to press the button yes.

Sergey
Re: Mach3 ShutDown
« Reply #7 on: June 15, 2009, 06:48:37 PM »
o/

tks a lot!!

I was searching for this!!

But this code didn't work like i'd want.
So i tried (is it try on past?) others combinations with "SendKeys" and i found this:

SendKeys "%+{F4}"

without blanks.

Its works!!!!  o/
Re: Mach3 ShutDown
« Reply #8 on: August 24, 2009, 05:03:10 AM »
Have you noticed that this command does not work on "image button"?
Works only with "button".
Why is that? Can be solved?

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Mach3 ShutDown
« Reply #9 on: August 24, 2009, 08:33:26 AM »
The cheap way to do it on image buttons is this, put the code:
SendKeys "%+{F4}"
into a macro call it "m888" and save it to your profiles macro folder.
in the image button, tick the VB box, and put this code:

Code "m888"

then when you push the button it runs that macro, which then runs the shutdown code.

scott
fun times