Toggle "Confirm Drag and Drop"

Features wanted...
Post Reply
TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Toggle "Confirm Drag and Drop"

Post 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!

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Toggle "Confirm Drag and Drop"

Post by admin »

Nope, there isn't.

totmad1
Posts: 131
Joined: 24 Jun 2013 12:37

Re: Toggle "Confirm Drag and Drop"

Post 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 196 times
totmad1 (totally mad one)

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Toggle "Confirm Drag and Drop"

Post 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!

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Toggle "Confirm Drag and Drop"

Post by TestMeister »

Hi Don, resurrecting this from 5 years ago and wonder, given all the modifications since then, might this now be possible?

Thanks!

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Toggle "Confirm Drag and Drop"

Post 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

TestMeister
Posts: 188
Joined: 04 Feb 2008 20:17

Re: Toggle "Confirm Drag and Drop"

Post 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?

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Toggle "Confirm Drag and Drop"

Post 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.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

Post Reply