Ahhh ok. I tend to use ProcessWaitClose in AutoIt, don't know the syntax for AutoHotKey off hand. The reason I use that instead of RunWait is because there might need to be more steps to be done after running the emulator (e.g. setting fullscreen, inputting the rom name, etc.). If you use RunWait then the script will pause till the emulator is closed and then won't run anything needed after that.