Page 1 of 1

Toggle "Confirm Drag and Drop"

Posted: 16 Sep 2017 22:17
by TestMeister
I never had this enabled until a few times I unknowingly locked a file by a left click and moved it somewhere I could not find. So now I have this enabled and most of the time I don't mind the stop message. However, there are times I'm engaged in heavy file maintenance, paying close attention and the stop message is a nuisance.

Is there a command I can reference and add to a toolbar button that will toggle this on/off? I could not find one in the Scripting Commands Reference.

Thanks!

Re: Toggle "Confirm Drag and Drop"

Posted: 17 Sep 2017 17:51
by admin
Nope, there isn't.

Re: Toggle "Confirm Drag and Drop"

Posted: 19 Sep 2017 15:57
by totmad1
This is not an ideal solution , it uses restart without saving .
I do hope this is useful for you.
toggleDragNDrop.xys
(222 Bytes) Downloaded 211 times

Re: Toggle "Confirm Drag and Drop"

Posted: 19 Sep 2017 18:04
by TestMeister
Looks like it changes the config setting but not the in-memory setting, which may not be accessible, hence the need for a re-start
Thanks, very kind of you to take the time to write that for me!

Re: Toggle "Confirm Drag and Drop"

Posted: 23 Sep 2022 01:15
by TestMeister
Hi Don, resurrecting this from 5 years ago and wonder, given all the modifications since then, might this now be possible?

Thanks!

Re: Toggle "Confirm Drag and Drop"

Posted: 23 Sep 2022 11:38
by admin
Next beta, not in change log. :)

Code: Select all

tweak("ConfirmDrop", 1);    //set
tweak("ConfirmDrop", 0);    //unset
tweak("ConfirmDrop", 0, 1); //toggle 0/1
tweak("ConfirmDrop");       //show status

Re: Toggle "Confirm Drag and Drop"

Posted: 23 Sep 2022 23:45
by TestMeister
Your are the man, thanks! :appl:

If I set the toggle option, will there be a command I can assign to a user button?

Re: Toggle "Confirm Drag and Drop"

Posted: 24 Sep 2022 01:02
by klownboy
From "Overview of undocumented script commands" here on the forum Script Exchange section:

Code: Select all

tweak()
Tweaks an internal setting (a setting without config UI), and returns the old value. The change is effective immediately.
So you should be able to add the toggle, tweak("ConfirmDrop", 0, 1); to a CTB.