I’m trying to create a macro to help me quickly change the page size with just my keyboard.
My workflow would be:
I’m 50% there, I’m just stuck on getting the actual code do this.
Example shows the dimensions added to the form.
You can accomplish this without using a macro by using a shortcut key to access the same Page Size command that CorelDRAW uses in its own user interface (e.g., on the Property Bar when nothing is selected).
Search for "size" in the Commands in workspace customization, then look through the search results to find it:
From there, assign a shortcut key to that command.
When you use that shortcut key, the command will be displayed at the cursor location.
I have "A" set as the shortcut for the video below. Type, tab, type, Enter - and you're done.
How did I know Eskimo was going to swoop in with a simple answer. Thank you!
Ronny Axelsson is the person who first introduced me to that capability - but with the object size command. This is the same sort of thing, but with the command for page dimensions.
Thanks for mentioning, John. Yes this is a very nice and time saving feature that I don't think I have seen in any other software.Shortcuts to make the value boxes pop up at cursor position, ready for typing, can be added to many of these boxes, and I personally use Object Position, Object Size, Scale Factor, Angle of Rotation and Page Size all the time.Can be a bit tricky to finds the right command from the list in Options though (Rotation is called "Angle" and there are five different "Size", for example), so the easiest way is probably to right click the symbols next to the boxes in Property Bar, then Customize > Toolbar Item > Properties...This should take you to the right place.