Page 1 of 1

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

Posted: 23 Apr 2018 16:05
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 ;)

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

Posted: 23 Apr 2018 16:19
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;
    }

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

Posted: 23 Apr 2018 17:03
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...

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

Posted: 23 Apr 2018 17:07
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

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

Posted: 05 Jul 2018 13:16
by lilivier
Here it is:

Image

Image

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

Posted: 05 Jul 2018 14:13
by highend
Action on click must be "Go to Location"...

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

Posted: 05 Jul 2018 14:17
by lilivier
Thanks it is working :)