Clear <get drop> when re-invoking the script

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
klownboy
Posts: 4398
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Clear <get drop> when re-invoking the script

Post by klownboy »

The help file states that...
The <get drop> variable is cleared after the script is processed, so it cannot be used after the drop event is completed.
I used <get drop> recently in a script to initiate an action - when a file or folder is dropped on the CTB, the script recognizes the drop and runs a reset of settings, changing the script content (variables). Nothing happens to the file or folder dropped. However, in my situation after having used <get drop> once, I'd like to get it cleared. I was hoping I might be able to call the script again so the user could re-establish new settings after the reset, by either the SC 'load', 'button', or 'userbutton', but the <get drop> variable is still valid. Does anybody know of a way that the script could some how be invoked with the <get drop> cleared? If not, I'll have to establish another perm variable which would act as a flag in the beginning of the script that the reset was accomplished, and then take the necessary course of action.
Thanks,
Ken

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

Re: Clear <get drop> when re-invoking the script

Post by admin »

<get drop> stays set until the script invoked by the drop is completely finished. There is no way to reset it actively.

klownboy
Posts: 4398
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Clear <get drop> when re-invoking the script

Post by klownboy »

admin wrote:<get drop> stays set until the script invoked by the drop is completely finished. There is no way to reset it actively.
Thanks Don, it didn't look like there was since I tried a number of different ways which obviously didn't work. I figured I'd ask anyway just in case there was a work-around. Thanks.

Post Reply