How to set up a trigger that triggers one or two actions

Thanks a lot, noisneil. Let me give it a try. Where can I change the 0.5 s?

I found it.

The two macros are triggered as requested/expected. But with the second macro (key pressed, held), the letter is typed repeatedly.
qqqqqqqqq...

Please post your macro.

Hi @noisneil , sorry for my late reply. Sometimes I have to work a little to make ends meet. Thanks again for your efforts. I think your macro would have been the solution.

But unfortunately, it doesn’t work for me because KM keeps changing the time setting on its own. I don’t know why. I’ve never experienced anything like this before. I’ll try changing the settings a bit and will be happy to get back to you.

The timeout of the green pause action is changing at random? Really? :exploding_head:

I would have liked to do this with short/long press actions, but unfortunately that doesn't work. That's why I decided to use the “Modifier" Space. Also because the other Modifiers are already assigned.

This is just another way to change text styles, either directly where the cursor is or when text is selected. The styles are tailored to my needs; I usually need 3. But you could add whatever you like.

Change Style from where the cursor is

Space + D ---> Default style

Space + G ---> Text highlighted in green

Space + M ---> Text in magenta

Here's how it works: You're writing in your default style. Now, starting from where the cursor is, you want to highlight the following text in green (press: Space + G). The text is now highlighted in green. Then, to return to your default style, press Space + D.

Change Style when text is selected

Press: Space ---> A palette opens next to the selected text (SWIFT Script, thanks noisneil).

The palette should be self-explanatory. And no, it’s not pretty, it’s functional.

Of course, all of this only works in RTF text fields. Maybe not in all of them.

Styles : Space.kmmacros (12.4 KB)

:red_exclamation_mark:Styles : without Palette Macros.kmmacros (13.7 KB)

:red_exclamation_mark:Styles : with Palette Macros.kmmacros (50.2 KB)