hello! Has anyone worked the macros in pronterface?

hello! Has anyone worked the macros in pronterface? iwant to create a custom button but not only include m codes but also write python code. i want to use the internal variables. Has anyone done this??

I haven’t but am interested as well