Page 1 of 1

How to change name of a macro?

Posted: Thu Nov 10, 2011 5:13 pm
by krambriw
Hi, I need some help from you experts,

I have a macro with an action inside. If I would like to change the name of the action I can use eg.ActionBase.GetLabel. This is working fine, no problems.

But how can I change the name of the macro itself in a similar way?

Best regards, Walter

Re: How to change name of a macro?

Posted: Thu Nov 10, 2011 5:40 pm
by Pako
If I understand correctly, then I think it's impossible.
A macro is automatically named when it is created (according to the action with which it is created), but later they can not.
Remember that the macro can contain multiple events.
Based on what action would the macro be automatically renamed?

Pako

Re: How to change name of a macro?

Posted: Thu Nov 10, 2011 7:09 pm
by krambriw
I see, you are of course right.

I was looking how to cheat using functions in the eg built in functions like eg.actionThread.Func(macroItem.RenameTo)(label) in file NewMacro.py

My very best regards, Walter