Thanks for this excellent script. I've been using it to launch and close programs and finally decided to use it instead of Xpadder to control Hyperspin with my Xbox controller. I have two issues, there is about a 2 second delay when I exit en emulator before I can regain control of the Hyperspin wheel, is this normal? I should mention that I use Xpadder while playing systems.
The second problem is that it takes about 10 seconds or more before I have control of the wheel when I first turn on my computer. What is weird is I can press a button to skip the intro video but when the wheel loads its not responsive for about 10 seconds. Any ideas?