send CTRL+P to unity automatically after succes build in Visual Studio C#

Hi there,
I’m using VS professional for editing my C# Unity scripts.
I was wondering if there was a easy way to use post-build events for sending CTRL+P to my background Unity process and start to test the active scene automagically, it would speed up a bit my workflow.
Anybody tried this before?

Thanks!

I dont know if this is going to help you, but it is possible to do it with monodevelop http://forum.unity3d.com/threads/75914-Debugging-with-Monodevelop-can-t-find-Javascript-standard-asset-scripts.

Also, if you are on win7 64, you don’t want to do that. Clicking too fast on Play button always crashes Unity editor here.

You can do it with a VS plugin (very easy to write, 6 lines of code) or you can use AutoIt if you do not want to go that route. As scarpelius points out, you need to wait just a brief second for Unity to catch up with your code changes.

If you go the VS route you can also hook Unity and embed the environment in a VS window so you never have to actually leave VS2010.

@JustinLloyd: thanks for the AutoIt reference! I never used it before, it seems useful, I think I can set the delay in the script, is anyone using this?