Creating a strikethrough text functionality

Hi

I wonder if the following is possible:

I want to create a piece of code (in an agent thats selectable through the action menu), that will strikethrough a piece of selected text.

I know that only Lotusscript (notesRichTextStyle.StrikeThrough

) has a method that can strikethrough a piece of text. But the example in the help does not work through the Notes UI. I need the code to recognize the selected text and then use the method of the notesRochTextStyle class.

Is this possible? If so can someone help me starting.

Subject: another way

do you need to use script? If not you can assign a text style to the F11 key. Open text properties box and click the last tab and you’ll see what I mean. You can delete some or all of the default styles and just put your own in there so that hitting f11 will toggle between normal and strike through.