Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragging does not work #23

Open
tyeeman opened this issue May 10, 2024 · 8 comments
Open

Dragging does not work #23

tyeeman opened this issue May 10, 2024 · 8 comments

Comments

@tyeeman
Copy link

tyeeman commented May 10, 2024

I thought I'd try this after your nice ffmpegparams app. I have the config open on my desktop and when I go to drag a shortcut onto it I get a circle with a diagonal line through it meaning it's not working. I'm on Win10. Anything I'm doing wrong? The title bars shows it running as admin. I also get this strange window -

2024-05-09_173400_cr

@BazzaCuda
Copy link
Owner

BazzaCuda commented May 10, 2024

Hi, I'm going to need some more information.

I assume you're running the latest version, v1.0.8?

Firstly, just to clarify, when you have the config window open you should be able to drag anything onto the tree panel on the left:
image

You can also drag individual items (e.g .exe or folder) from Explorer to, for example, the Command and Directory boxes.

In tests, I was able to select everything on my desktop and drop them all on the tree panel in one go - it created all the many menu items required. Also, I was able to drag and drop all the .exe's from my Windows* installation - If I recall correctly, that was about 250 items.

I'm unable to reproduce any situation where I get the "drop forbidden" symbol (red circle with a diagonal line) - I can drag over any part of the config window without getting that symbol. What was it you were dragging?

Secondly, can you show me the config window entry for that "New Menu Item" you've created, please. How did you create it? And what is "ms-gamingoverly" trying to do? Is it an MS Store app?

Is there anything special or non-standard about that desktop that you've screenshoted? Is it a virtual machine, for example? Does it automatically change the desktop background image at intervals?

@tyeeman
Copy link
Author

tyeeman commented May 11, 2024

Yes, I'm running the latest. I'm dragging shortcuts from my desktop. I thought you could tell me what that ms-gamingoverlay link was. My new menu item is not there now. No virtual machine. Strange. I should make a video and upload it to youtube so you can see. Here it is - https://www.youtube.com/watch?v=govtYJ6yAi4

PS, I got rid of that gamingoverlay pop-up by googling it.

@tyeeman
Copy link
Author

tyeeman commented May 13, 2024

Solved! After 2 days of reading everything I could find.

I was running Custom Menu from total commander which is running as admin. Windows desktop does not run as admin. DnD from lower elevation to higher elevation is prevented in Windows for security reasons obviously. So if I run Custom Menu from a desktop shortcut the DnD works.

PS - Can't figure out how to DnD a folder into the tree?

Update - ok, I dragged a folder right onto a menu item and now it shows in the listing.

I'm trying to show the contents of this folder with pdf's only in it like your example.

Your image above shows running as admin and you can still DnD. Hmm...I'm wondering how?

@BazzaCuda
Copy link
Owner

Wow! Well done for working it out.

I have to be honest, I have had User Access Control turned off on all my Windows systems for so many years, I'd forgotten it existed! I would never have supposed it was causing any problems with Custom Menu, and certainly not with the Drag and Drop function.

If you have a folder as a standard menu item, it will be opened in Explorer, or whatever file manager you have running (in my case, Directory Opus). If you want to limit the folder contents to just PDFs, for example, what you're creating is a live/dynamic submenu; in this case you manually create a "browse" menu item as per my examples.

Let me know how you get on.

@tyeeman
Copy link
Author

tyeeman commented May 13, 2024

Can you show a screenshot of the config window for this -

Alternatively, you can include subfolders and CustomMenu will become a live disk-browsing facility, with a submenu for every subfolder it finds:

Thanks

@BazzaCuda
Copy link
Owner

BazzaCuda commented May 14, 2024

To create such menus, you specify "browse" in the command box.
The folder to be browsed is specified in the Directory box.
The Parameters box determines which files and folders will be shown from the folder.

image

This creates a menu item called "Browse Downloads". When hovered over with the mouse, a live submenu is displayed showing the contents of my downloads folder:
image

Because I have specified "+folders", all folders will be displayed and each folder becomes another submenu which can be hovered over:
image

In this case, I have limited the files to be shown as just *.pdf and *.epub. You can also specify *.* to show all files (this is the default).

As you move the mouse over the folders, it will helpfully distinguish between those that have contents [which match your criteria] and those that don't:

image

One of the best uses of the browse feature is that I have menu items set up for the most common drive letters that my Windows system assigns to USB sticks, in my case F:, G:, H: and I:

I have a top level menu item called "USB Drives":
image

Then I have individual "browse" commands for each drive:
image

When I have inserted a USB stick, a quick hover over the USB drive menu items shows which drives are mounted and which aren't:
image

Note that if you save your Custom Menu to the Windows Desktop Menu with "Write to Desktop Menu" (which I always do), the "browse" menu items will only work when accessed from Custom Menu, not from the Windows menu as Windows doesn't understand what to do with the "browse" command.

Also, if a submenu (especially a browsed folder) has so many items that it requires the scroll buttons to be displayed, you only need to hover your mouse over a scroll button for it to automatically scroll the menu items. Alternatively, you can scroll using the mouse wheel.
image

Hope that helps. Let me know.

@tyeeman
Copy link
Author

tyeeman commented May 15, 2024

Excellent. I understand now. I suggest adding this to the bottom of your readme.

Only thing I need CustomMenu to do is to be able to click it from the system tray. I will be using it for encrypted passwords for web pages which would mean currently going back to the desktop each time. I think you said there is a hotkey also but just one click in the system tray would be nice.

@BazzaCuda
Copy link
Owner

Yes, if you create a file called "hotkey" in the same folder as the .exe and restart the app, it will prompt you to create a hotkey to activate Custom Menu from anywhere without needing to get to your desktop. I'll have a think about adding a menu item to the system tray icon.

@BazzaCuda BazzaCuda reopened this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants