Option to prompt "are you sure" before cancelling a print?
-
@owend said in Option to prompt "are you sure" before cancelling a print?:
If you add
M291 R"Confirm" P"Do you really want to cancel" S3
To the start of cancel.g it should do what you want.
i.e. If you hit OK, it will run the rest of what is in cancel.g
if you hit cancel it will bail out.Of course if cancel.g is called programmatically (M25) by anything else it will also wait for a prompt.
I'm not aware of anything that does call cancel.g other than pressing the cancel button, but just so you take it into consideration.I don't have a cancel.g. Is it part of the standard config? I can create it but thought it worth asking.
Thanks for the code
-
@blacksheep99
If cancel.g isn't present then stop.g would be run
Look up M0 (runs stop.g if present ) and M25 (runs cancel.g if present)So, in your case, create cancel.g and put in it anything you want to happen when a print is canceled.
I'm pretty sure if cancel.g is present the print won't stop unless it's so dictated by the contents of cancel.g whereas if stop.g isn't present the print will still stop if M0 is sent.
Not near a computer so can't test. -
I have moved this to the Duet Web Control wishlist as it would be good to have an optional setting in DWC to prompt before cancelling that is independent of prompts within cancel.g
-
@t3p3tony
It would already help to have the two buttons further apart. There's no problem for users with a mouse, but touchpad-tablet users with 'ten thumbs' will appreciate that for sure -
@o_lampe said in Option to prompt "are you sure" before cancelling a print?:
@t3p3tony
It would already help to have the two buttons further apart. There's no problem for users with a mouse, but touchpad-tablet users with 'ten thumbs' will appreciate that for sureBeen peaking at me operating my laptop, have you .....
-
An option to add "are you sure" on the Emergency Stop would be nice as well... I have accidentally tapped it while using DWC on my phone before
-
@thebaseddoge I don't think waiting to answer a prompt in the middle of an emergency is a good idea.
-
@chimaeragh True I guess. But i usually just press the power button on my printer if there is an actual need for E STOP
-
@thebaseddoge I use my duet to control a CNC. We don't have the luxury of time 3d printing applications have. If I need to stop the machine from moving, it has to be instant.
-
@o_lampe
The suggestion with more screen-space instead of a confirmation is definetly the right for the "emergency stop"-button@thebaseddoge
emergency is something critical, rather then having a "are you sure" you might consider to ask for more blank screenspace around it to lower to risk to hit it accidentally...I would support this new wish, as this might be somehting most people can live with and touch-users also benefit from. Put the link here if you posted it in the wishlist and you have my thumbs up.
-
This post is deleted! -
FWIW,
'Emergency stop' means just that. Stop NOW.
What I suggested is a confirmation for a non emergency abort which is a totally different kettle of rabbits.