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

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.


Take a look at this thread:

thanks for the informations.