My goal is to create a button that for a currently selected folder in the source, opens it in the destination. The button should be grayed out if a folder is not selected.
The following code works but has one problem:
@disablenosel:dirs,(type=*.*)
//dirs or dirs,(type=*) or dirs, (type=*.*) have the same effect
Go FROMSEL OPENINDEST NEWTAB
As a button, this worked and the button was grayed out for any selected files. As an All Files and Folders context menu item, it worked but the label text was grayed out only for .lnk files. This seems wrong. The same code ought to have the same effect in both places.
By the way, @hidenosel has the same problem. As a button, this worked and the button disappeared for any selected files. As an All Files and Folders context menu item, it worked but the button never disappeared and was grayed out only for .lnk files.
Why not put it on the All Folders file type and avoid the need to disable/hide it entirely?
Because then I can't control where the item goes. If it's in Only Folders, it goes above all the All Files and Folders items at the very top of the list. I want to keep all items that open something together.
Again the issue is consistency.. If code works in a button, it should work in a context menu item. Here it does not. As a button, the label is grayed out and in the context menu it is not grayed out.
All three have the same problem as already said: the issue is consistency. If code works in a button, it should work in a context menu item. Here it does not. As a button, the label is grayed out and in the context menu it is not grayed out.
If anyone tries this and gets different results than what I have posted, please let me know.
Thank you very much for the pictures. It inspired me to take a hard look at the code. My bad, I old code from prior tests on a prior line overriding @disablenosel:dirs. I just didn't "see" it over and over again because I "knew" what was there. Sorry for taking up so much of everyone's time.