When triggering this macro, I would like to get a list pop up, like this example code in HTML that i found that autocompletes as i type.
After i selected the right one on the list, i would like to pass the variable to KM for further use.
I know about html prompt, but i don't know how to implement?
This is probably the best approuch, thanks I guess theres no way for this window to pop up at a specific area on the screen? As this might be quite important in context of how i want it to operate.
I never looked at conflict pallets before, and it does create a very interresting way to work, thanks for the tip I'm not sure how would you be able to use a conflict pallet with an autocomplete function?
Placing the AppleScript in the same macro as the Prompt with List action and sequentially after it fails, because the macro pauses execution while the Prompt with List action is on-screen. So by the time the AppleScript is executed the prompt window no longer exists.
Install both macros and make sure they are correctly linked in the ‘Execute Macro’ action.
You have to have all the macros preconfigured to use the same keyboard shortcut, and then when Keyboard Maestro creates the conflict palette it tries to choose the best letter in the macro name for you to type to get to it.
Here's a small test group, so you can experience how it works.
Pressing the different highlighted letters allows you to quickly drill-down to the item you want.
For some applications this is great, and you can very quickly perform tasks once you've built some muscle-memory.
But – I don't much like palettes. I do use them for certain things – especially when I want one-key access to various functions.
Here's my Google Chrome 1-Key Palette:
I have a hotkey that opens and closes this, so it's ONLY open during the times I want 1-Key access to the relevant commands.
For quick access to commands that don't have hotkeys I generally prefer the Prompt with List style UI. It lets me type a few letters or a couple of words to quickly get where I want – and i can add mnemonic tags to these commands for even quicker access.