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

Macro recording - How to specify the use of CAPSLOCK

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Borut
Newbie
Newbie


Joined: 17 Mar 2009
Posts: 4

PostPosted: Thu Apr 12, 2012 3:55 am    Post subject: Macro recording - How to specify the use of CAPSLOCK Reply with quote

I've recorded a macro in Open Office Writer. Among other things it should find a specific string and replace it with another, but ONLY if the string is upper-cased. So, for example, it should NOT find the word "rabbit", but it should find the word "RABBIT" and than replace it...

How can I put this in macro's basic, which looks something like:

...
args45(9).Name = "SearchItem.SearchFlags"
args45(9).Value = 65536
args45(10).Name = "SearchItem.SearchString"
args45(10).Value = "RABBIT"
args45(11).Name = "SearchItem.ReplaceString"
args45(11).Value = "some word"
...



Thanks.
Back to top
View user's profile Send private message
DVezina
OOo Advocate
OOo Advocate


Joined: 29 Sep 2006
Posts: 248
Location: Orlando

PostPosted: Wed May 02, 2012 10:00 am    Post subject: Reply with quote

Value = 3 is case sensitive.


args45(17).Name = "SearchItem.Command"
args45(17).Value = 3
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 Macros and API 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