Catalog: Option to launch programs(.bat, .exe) on double-click only

Features wanted...
Post Reply
lilivier
Posts: 25
Joined: 30 Mar 2016 11:49

Catalog: Option to launch programs(.bat, .exe) on double-click only

Post by lilivier »

When clicking on an item of a catalog it immediately opens the item.
This is great for folders or non executable files.

Now it can be a problem for .bat or .exe files.
I have various .bat items in my catalog to start/stop some servers.

The thing is that sometime I miss-click on the wrong-item and it starts/stops my server.

Can we have to option to open/launch on double-click and not on single-click ?

Thanks ;)

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Catalog: Option to launch programs(.bat, .exe) on double-click only

Post by highend »

Why don't you use something like this in the meantime?

Code: Select all

    if (confirm("Do you really want to execute this item?", , 1, 4) == 1) {
        run """<your .bat script (full path)>""", %TEMP%, 0, 1;
    }
One of my scripts helped you out? Please donate via Paypal

lilivier
Posts: 25
Joined: 30 Mar 2016 11:49

Re: Catalog: Option to launch programs(.bat, .exe) on double-click only

Post by lilivier »

Thanks,

I tried to associate your script to the item through Properties>Edit..., but nothing happens when clicking on it ;)

The script works fine if I go to Scripting>Try Script...

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Catalog: Option to launch programs(.bat, .exe) on double-click only

Post by highend »

Show a screenshot of the catalog entry (after clicking on the Properties entry in the context menu) and the content of the window after clicking on the Edit... button
One of my scripts helped you out? Please donate via Paypal


highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Catalog: Option to launch programs(.bat, .exe) on double-click only

Post by highend »

Action on click must be "Go to Location"...
One of my scripts helped you out? Please donate via Paypal

lilivier
Posts: 25
Joined: 30 Mar 2016 11:49

Re: Catalog: Option to launch programs(.bat, .exe) on double-click only

Post by lilivier »

Thanks it is working :)

Post Reply