Can one record a string of commands and turn it into a button?

Hi
V5
Can one record a string of commands and turn it into a button ?
what are the steps to do that please.

I will start with select last drawn, bring to front.
and could I add to the code to apply that to next draw and next draw etc, then right click the button to end that routine ?

Cheers

Steve

Hi Steve -

Not without additional work, no.

You manually go through the steps that you want to take. Then copy the relevant command history and paste that into Notepad. Delete what’s not needed and copy-paste the part that is needed into the button.

SelLast BringToFront

I’m afraid I’ve no idea what that means…
-wim

Hi,
it means I click the button, it selects the last drawn and brings to front.
it then is a ’ live ’ code and acts on the next draw I do, and the next draw I do, etc etc.
then I right click the button to stop it being ‘live’.

Cheers

Steve

Hi Steve -

There is no such mode, no.
-wim

Hi,
oh well,
so I make a button with a pretty picture using the make button command wherever it is,
and what code goes into the window for the LMB ?

SelLast BringToFront

but no doubt something before and after that ?

Cheers

Steve

Hi Steve -

Only if you need it to be.
-wim