Page 1 of 1

Assign keyboard shortcut to non-standard highlight color?

Posted: 2024-02-19 09:15:42
by NisusUser
Is there a way to assign a keyboard shortcut to the color "Tangerine"? I already have shortcuts assigned to the regularly listed colors:
Highlight colors with keyboard shortcuts.png
Highlight colors with keyboard shortcuts.png (63.27 KiB) Viewed 1007 times
tangarine.png
tangarine.png (243.86 KiB) Viewed 1007 times

Re: Assign keyboard shortcut to non-standard highlight color?

Posted: 2024-02-19 12:28:07
by adryan
G'day, Eric et al

Create a Macro with the following commands and assign it a Keyboard Shortcut:–

Code: Select all

$tangerine = Color.newWithHexTriplet 'FF9300'
Set Text Color $tangerine
Cheers,
Adrian

Re: Assign keyboard shortcut to non-standard highlight color?

Posted: 2024-02-19 12:49:39
by NisusUser
adryan wrote: 2024-02-19 12:28:07

Code: Select all

$tangerine = Color.newWithHexTriplet 'FF9300'
Set Text Color $tangerine
Thank you, Adrian. I did that. And it works – in a way. It actually changed the text color to tangerine, though, not the highlight behind the text. How do I do that?

Eric

EDIT: Oh, that was easy: All I had to do was change the word "Text" to "Highlight" in the macro (without the quotation marks, of course).

Re: Assign keyboard shortcut to non-standard highlight color?

Posted: 2024-02-19 13:46:19
by adryan
G'day, Eric et al

Sorry, I missed that it was the highlight coloring you wanted.

For those interested, the options are:–

Set Text Color
Set Background Color
Set Highlight Color
Set Underline Color
Set Strikethrough Color

Cheers,
Adrian

Re: Assign keyboard shortcut to non-standard highlight color?

Posted: 2024-02-23 13:59:04
by NisusUser
@Adryan (aka Adrian),

I started to ask you to share with me how you got the Hex code for the Tangerine color. I had been looking at the CMYK slider and did not see any Hex Color Number. But after I uploaded my screenshot, which I did of the RGB slider I saw that the "Hex Color #" is there.

So … I'm just posting this so I can remember how to do this. (I decided to add yet another highlighting color.)

No responses necessary… I'm merely using the Nisus forum as a knowledge repository. :D
nisus_color_sliders_tangerine_w500.png
nisus_color_sliders_tangerine_w500.png (83.67 KiB) Viewed 952 times

Re: Assign keyboard shortcut to non-standard highlight color?

Posted: 2024-02-24 20:44:04
by adryan
G'day, Eric et al

FFD700 star, Eric!

It might be as well to remind/inform people also of the Digital Color Meter application in the Utilities folder. This allows you to get color code values for any color displayed on your screen, without having to extract the information from a screenshot.

Cheers,
Adrian