relocate a cube with a new location and rotation, how?

Hi
Can I do this with a simple script? If so, please help.
I know that I could do that with ipo, but would like to find a new way.
Any leads?

I would like to right mouse click to relocate the cube to a new position with a new rotation.

Many thanks.

pc

Take a look at this thread:
https://blenderartists.org/forum/viewtopic.php?t=27109

thanks for the informations.