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

Keyboard macro in Write

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


Joined: 09 Feb 2005
Posts: 23
Location: Mountain View, CA

PostPosted: Wed Feb 09, 2005 10:11 am    Post subject: Keyboard macro in Write Reply with quote

I'm a writer. I like to edit with a WordStar-style keyboard. Easy to do in Word/WordPerfect, but I'm having difficulty with OO Write. Specifically, creating a ctrl-y macro that deletes the current line of text.

I type a line of text, go to Record Macro, name the new macro "ctrly," then press Home, F8, End, Delete (or Backspace) to delete the line, then stop recording. But when I play back the macro, it doesn't delete the line.

Any thoughts? Thanks.
_________________
George Beinhorn
www.writeremedy.com
Back to top
View user's profile Send private message Visit poster's website
Iannz
OOo Advocate
OOo Advocate


Joined: 14 Feb 2004
Posts: 494
Location: Christchurch, New Zealand

PostPosted: Wed Feb 09, 2005 2:00 pm    Post subject: Reply with quote

The recorder comments out (starts with a REM) statement that corresponds to F8 (rem dispatcher.executeDispatch(document, ".uno:SetExtSelection", "", 0, Array())).

I suggest recording:
Home > Shift+End > Del

As this works for me in OOo1.1.4 for Linux.
_________________
Cheers, Ian

http://wiki.services.openoffice.org/wiki/Extensions_development_basic a wiki about writing OpenOffice.org extensions.
Back to top
View user's profile Send private message
runbei
General User
General User


Joined: 09 Feb 2005
Posts: 23
Location: Mountain View, CA

PostPosted: Sat Feb 12, 2005 7:42 am    Post subject: Works great Reply with quote

Ian, thanks. This works fine. I also found a "delete row" key assignment that does the job, but I reckon it's best to save that for use with tables.

George
_________________
George Beinhorn
www.writeremedy.com
Back to top
View user's profile Send private message Visit poster's website
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