I am working on a program that creates symbolic algebraic expressions. I'd like to be able to "export" these to Maple. Ideally I'd like to have a menu option "Send to Maple" that would either start Maple or find an existing running version. It would then simply paste the expression in Maple syntax into the open UI.
The OpenMaple API seems to only give access to the kernel which appears (and rightly so) to know nothing of the UI. Is this the case? Is there any API that would allow me to paste to an open Maple window?
I tried enumerating all open Windows via MS Windows API functions. But since the Maple UI is Java based I couldn't get a pointer to the window...plus this seemed to be a pretty hacky solution to me.