Floating Menu Alpha Development Thread

I have tested 4.112. I don't know what you mean by "some issues". :slightly_smiling_face: If I press and hold a modifier the whole menu disappears. What should happen is that the respective buttons are displayed.

@frank1 What does your menu level modifier configuration look like? Sounds like the menu is hidden based on that.

@brahim you can set a custom background for the menu.

I'll check why it opens twice.

Your shortcut seems to specify to only accept input from the share sheet or quick actions - maybe that's the problem

Mm, Do you mean this? This is the "modifier visibility" for the whole menu. No setting.

And this is a button that should only be visible when ⌃ is pressed.

Amazing, I'll try adding an image bg!

I thought the same, changed it, but still the problem persists. It prompts me a request to access a folder, I click "OK", but nothing happens afterwards :slight_smile:

Here's the popup:

@Frank1 Weird, I currently can't seem to reproduce this with my test menus. Could you send yours over again? :slight_smile:

sent :slightly_smiling_face:

@Brahim for whatever reason, Shortcuts copies files to a temporary folder when passing the paths like /Users/xxx/Downloads/test.pdf That's why your get parent directory fails.

Instead if I pass file:///Users/xxx/Downloads/test.pdf it seems to work fine. So I'll quickly update this.

@frank1, thanks I found what's wrong. Will be fixed asap

Understood!
Thanks.

Actually it's more complicated and now I remembered why I created the "Convert JSON to File" Shortcut action.
Shortcuts will only allow direct file input from trusted apps like the Quick Actions, but not for third party apps like BTT. For third party apps, Shortcuts always copies the file to some temp folder, which is very annoying.

To workaround this I created a shortcuts action that takes some JSON in this form as input:

[
{"fileURL": "/Users/xxx/Downloads/test.jpg"},
{"fileURL": "/Users/xxx/Downloads/test2.jpg"},
]

and converts it to directly accessible files.

BTT 4.113 add an option to pass such json from the dropped files to shortcuts. Your shortcut actions then need to look like this: https://www.icloud.com/shortcuts/f029545377974eed92f7fe17161e8c06

Updated preset available here: BetterTouchTool Preset Sharing Platform

@frank1 your issue should also be solved in 4.113.

BTT V 4.113

Drag & Drop Shortcut

It works for my PDF converter if I Use the Convert input JSON.. Module!
But, the duplicating problem is still here.


(In this example, I've dragged the PDF file 3 times)

When I click the button, it doesn't ask for files, it just runs and stops.
If I run it in Shortcuts, it asks for files.

Found Why: :slight_smile:

Every time I click the button, It doesn't ask for files since it does already have old files in stock :joy:

Found a Small UI Bug:

Since the last 3 Alpha versions I think.


[When on Floating Menu]
When on mission control, and the app is in the background, it does show as normal.
When on other menus, it looks normal

Another thing

If I right-click a floating menu, And the options are on top, If I Left click inside the Area of the Floating menu button (When trying to select "Float On Top" for example) it triggers the button.

--

If I "Stick to Desktop" and I click on the area where the menu was While on another app, It comes back to float on top :slight_smile:

Not quite yet, but you are very close :slightly_smiling_face: I see one last problem.

Example: This is what the floating menu looks like if Vivaldi is the front app and no modifier ist pressed. Global and app specific buttons.

image

Now if a modifier is pressed with nothing set (eg shift) the menu should not change. But in fact all global buttons disappear. The Vivaldi buttons behave correctly, they remain visible.

@Brahim in 4.115 you can do something like this to choose files if none are provided via drop: Shortcuts

Also should fix some of the other issues you mentioned

@frank1 4.115 also adds another check for the modifiers, maybe this was the issue

Yes, nice, thank you!

Almost Perfect with 4.115 !

Now it does prompt to select a file when the button is clicked and no file is dragged.
But also when I drag a file, it prompts me to select a file.
(It processes the file I dragged as it should, no duplicates now)

It doesn't work when I click the button and select a file.

I have specified the accepted files to be PDF, it doesn't respect that, I dragged in a PNG and it processed it.

Some other problems stay the same, still comes back to float on top when I click the area.
Menu title UI is fixed :white_check_mark:

That's now most likely a shortcuts issue, have you tried the one I linked? For me it works with dropped files as well as manually selected ones. Checking the file type would also need to be done in the Shortcut flow, for example by checking the extension

Floating menus temporarily come to front when hovering them, is that maybe the issue you see?

That's What I did,
I added an If Filter to only accept PDFs.
I still have the problem with selected files not working,
I haven't tried the shortcut you provided, I'll try it now :slight_smile:


Also,
I've been having a problem with these specific 2 triggers not working in the latest Alpha releases. IDK Why
image

This one works
image
3 finger click works too.


Side Request: Could we have an activation delay with Modifier keys?

There hasn't been a change to these, but both of them rely on the macOS accessibility API. Maybe that got stuck, sometimes the only way to solve that is to restart your machine ;-(

About modifier keys, sorry I can't add more logic to them. They are already hard to handle, delay would kill me :smiley:

The "Open input" shortcut you provided doesn't work for me :frowning:
When I click it, it doesn't do anything.
When I drag a file into it, opens this txt file with the directory of the file.

My PDF shortcut works as I said, but with the previously mentioned problems.

image


Modifier keys delay:

Maybe later :slight_smile:
It can be useful, Click Shift once, and the Drop Zone activates for 10 sec to drop the files.

Very weird, that has to work. You are sure on v4.115?

Wait, is this this one or an older? (I have changed it multiple times :-))

https://www.icloud.com/shortcuts/f029545377974eed92f7fe17161e8c06