OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Change Highlighted Text to Red - Shortcut Creation for Dummy

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
natediesel
Newbie
Newbie


Joined: 24 Jul 2009
Posts: 2
Location: Seoul

PostPosted: Fri Jul 24, 2009 11:06 pm    Post subject: Change Highlighted Text to Red - Shortcut Creation for Dummy Reply with quote

Hi,
I've searched for this but I can't figure out how to do it. Font Color doesn't work for me for some reason.

If someone could walk me through step by step how to create a shortcut that would change the text I highlight to red, that would be great.

I went to Tools, Customize, Keyboard tab and created a shortcut easily for Strikethrough.

I am doing editing and also need to quickly change text I highlight to red and back to black.

Help appreciated!

Ctrl+L is set to Red but that doesn't seem to do anything. I set ctrl+shift+S to Font Color but that does nothing either...

Creating a shortcut to change highlighted text color to red for dummies! Confused
Back to top
View user's profile Send private message
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Sat Jul 25, 2009 8:16 am    Post subject: Reply with quote

Here's a macro I simply recorded. Once you save it you can find it at Tools > Customise > Keyboard tab - it should be in the Category window near the bottom in OOoMacros.

BTW, Ctrl+L, by default, is assigned to Align Left.
Code:
Sub SelectedToRed
dim document   as object
dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "FontColor"
args1(0).Value = 16711680
dispatcher.executeDispatch(document, ".uno:FontColor", "", 0, args1())
End Sub


If you don't know what to do with the macro see here.
http://www.oooforum.org/forum/viewtopic.phtml?t=7995
Back to top
View user's profile Send private message
natediesel
Newbie
Newbie


Joined: 24 Jul 2009
Posts: 2
Location: Seoul

PostPosted: Sat Jul 25, 2009 6:23 pm    Post subject: Reply with quote

Ah I tried but the macro thing is over my head. Hopefully this advice will help someone else out. Thanks.

I thought font color or Red would do the trick, but I don't know what setting a shortcut to those things does exactly...

Might have to do it the slow way then go hunt for my MSO cd Sad haha
Back to top
View user's profile Send private message
BillP
Super User
Super User


Joined: 07 Jan 2006
Posts: 2703

PostPosted: Sun Jul 26, 2009 5:43 am    Post subject: Reply with quote

I'm not sure what "Red" does, but think it's related to graphics. Another way to do this is to create a character style which will change the font color to red, then set a keyboard shortcut to apply the character style.

To create the character style, select a single word in a paragraph and change the font color to red. Leaving the word selected, open the Styles and Formatting Window (F11). Click the second (Character style) icon, then click the last icon and select New Style from Selection. Give the style a name and click OK. It should now appear in the list of character styles. You can then assign it to a keyboard shortcut using Tools > Customize > Keyboard.
Back to top
View user's profile Send private message
idlehands
General User
General User


Joined: 09 Dec 2008
Posts: 11

PostPosted: Wed Jan 20, 2010 1:52 pm    Post subject: Reply with quote

I stumbled on this thread and am hoping to get some help

Will a style let me change only the text color?

i'm used to lotus notes where i can go
shift-home/end to highlight a line

and then alt-t-color

which basically brings up the text menu, and then a set of 6-8 colors coded to letters.
like k for black, or r for red...
i'd love to be able to do that in oo.... i do'nt want to change the whole text style though..
Back to top
View user's profile Send private message AIM Address
jrkrideau
Super User
Super User


Joined: 08 Aug 2005
Posts: 6732
Location: Kingston ON Canada

PostPosted: Thu Jan 21, 2010 3:17 pm    Post subject: Reply with quote

idlehands wrote:
I stumbled on this thread and am hoping to get some help

Will a style let me change only the text color?


Certainly, just go to font effects and change the colour.

Actually select the current style, right click on it to create a new style and change the font colour.

You can do this for a paragraph style or for a character style.

[quotge]i'm used to lotus notes where i can go
shift-home/end to highlight a line
and then alt-t-color
which basically brings up the text menu, and then a set of 6-8 colors coded to letters.
like k for black, or r for red...
i'd love to be able to do that in oo.... i do'nt want to change the whole text style though..[/quote]

In OOo you are essentially changing the Style but it is pretty easy to do once you have defined the styles. ( with the Stylist open it is essentially a couple of mouse clicks).

If you are going to be using a lot of colours both paragraph and character ( OOo does not understand line all that well) you probably want to spend some time thinking about what styles and colours you want and then should design a template for general use.

Have a look at the chapters on Styles and Templates here.
http://wiki.services.openoffice.org/wiki/Documentation/OOo3_User_Guides/Chapters
_________________
jrkrideau
Kingston ON Canada
Currently using Windows 7 & OOo 3.4.0 and Ubuntu 12.04 & LibreOffice 3.5.2.2
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group