Prompt For User Input Window too large to display buttons

I've got a macro that uploads files to a server that I use for client media postings. As part of the macro, I display a list of the files uploaded, and prompt the user if they want to copy the list of files into the system clipboard, along with the client facing URL to easily paste into an email, or just the link. All that works great.

The (small) problem, comes when the list is over a certain number of lines, it pushes the buttons below the visible bottom of the screen. You can still interact with the buttons via keyboard presses but you can't see or click the buttons.

A relatively simple workaround would be to create a check if the list is over a certain number of lines, to just only display the first X number of them, preventing this from happening. I'm shit at HTML and I like the consistent look of the KM dialogs, so i've been avoiding using custom HTML prompts, as they greatly complicate things for me.

Any chance of getting a scroll bar in the KM prompts if they window displayed is taller than the vertical screen resolution? This may be too much of an "edge case" as it probably doesn't come up for too many users, so I'd definitely understand if it's not a priority, just wanted to see if others had run into it.

image

One thing you could try is to display that list in a Display text in a window action just before the prompt so both windows appear at the same time, one above another, and the data can be reviewed. Once a choice is made in the prompt, the display window could be closed by selecting the Keyboard Maestro engine in the Manipulate a window action.

1 Like

Thanks! That's quite a nice solution. I've got the window closing with the manipulate action, i just need to sort out stacking the windows neatly next to each other so it doesn't look so janky

1 Like

So I'm trying to get the windows to "stack" neatly, and this macro works every other time? I'm sure i'm doing something stupid!


prompt size.kmmacros (6.2 KB)

1 Like

Try this and tweak to taste.

Two Windows.kmmacros (23.0 KB)

Yeah this works, I was overthinking it, trying to capture the bottom of the text window and use that coordinate to set the next window location.

Thanks!