User Button Fire Click

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jsc572
Posts: 67
Joined: 16 Feb 2007 01:31

User Button Fire Click

Post by jsc572 »

Hi,

I have a user button assigned to secure delete using SDelete command line. The script looks like below:

msg "Secure Delete 7 passes, are you absolutely sure?", 1;
openwith """C:\XYZ\SDelete\sdelete.exe"" -p 7 -s <items>", m

Now, I want to assign drop down (fire click) to that button to give me choice to choose from 3, 7, 35 passes for secure deletion. So when the user button is clicked, instead offer to delete with default 7 passes, I should see 3 drop downs to choose from. Can anyone help? Thx.

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: User Button Fire Click

Post by Stefan »

Beside the fact that one overwriting would be enough...

here an idea without much thinking, perhaps that help? :

Code: Select all

 msg "continue?",1;
     load submenu;
XY\data\Scripts\SubMenu.xys wrote:"One"
    msg "one";
"Two"
    msg "Two";
"Three"
    msg "Three";


or perhaps smtg like:

Code: Select all

msg "Secure Delete 7 passes, are you absolutely sure?", 1;
    $passes = Input(,,7);
    openwith """C:\XYZ\SDelete\sdelete.exe"" -p $passes -s <items>", m

Post Reply