Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Macro to select a sentence in Python

Hello,

I'm hoping to write a macro that will perform the selection of text on a sentence by sentence basis.

i.e. a user hits a key-sequence and the current sentence is selected (like what happens when you triple left-click on a word. The user then hits another key-sequence and the next or previous sentence is selected. In this manner the user can navigate on a sentence by sentence basis in a document. (end use is an improved accessibility project)

My intial plan was to record a macro in basic and this would give the the pointer to the API call I need to make in Python. However when i triple click on a word, and thus select the sentence, nothing is recorded in the macro.

Any ideas ?

Best regards,

Colm