Tone curve with macro, help

Hey, guys.

I'm needing to use the tone curve window often, so I plan to 'call' the Tone Curve window using a macro... would anyone have an idea how to do that?