i can move the cursor to the para style box with a dispatcher command. But I cannot access the cursor in that box with the macro.
Background: What I’m aiming at is the easiest way to assign a parastyle while writing/editing a document without using the mouse.
Click or use shortcut to set cursor to parastylebox.
Navigate to desired parastyle using arrows (could make many hits necessary) or highlight all, then …
hit initial character(s) of desired style.
I want to write a macro that does 1) – which is easy using dispatcher - and then highlights whatever is in the box (which I have not found a solution for so far) so as to be able to do 3).
I know I could easily write a macro to assign certain styles, but the names of these styles change from doc to doc which would make a macro rewrite necessary. I also thought about a solution that enumerates all used parastyles into a select box, then let the user choose and apply selected choice to current paragraph, but I deemed the first solution simpler. Which it might not be.
(edited by ajlittoz to improve legibility)