Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Launch Unity from Visual Studio
IfWinExist, ahk_class UnityContainerWndClass
Send ^p ; sends Ctrl+P
MsgBox, 64, Unity is not open. Please open the project to run from Visual Studio.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace UnityRunSwitcher
static class Program
/// <summary>
/// The main entry point for the application.
/// </summary>
static void Main()
System.Diagnostics.Process.Start("launch-unity.ahk"); // new

jaywick commented Apr 22, 2014

Blog post:
Known issues: won't open the same solution from Unity since SLN is different :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment