Why? Seems a bit shady.

You can perhaps check out the Robot class for some useful methods.