Run script on application focus switch?

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
pecollinni
Posts: 6
Joined: November 3rd, 2013, 4:00 pm

October 24th, 2017, 3:55 am

So we have folders like "..\Support Files\Scripts\Startup" and "..\Support Files\Scripts\Shutdown" to run scripts in either of these cases. Is there a way to run them when we change our focus window to another application? I want to create seamless workflow between After Effects and Unity, and I was thinking to run my scripts whenever that happens.  I just need somehow to listen for some sort of Event of AEs window... 

or maybe when I activate Unity window I could send "run scripts" from Unity to AE via cmd...
Post Reply