I've found that for J. River Media Center AND Arcsoft Total Media Theater 3 using the handle in the Sendkeys command is not working. (The same may apply to others too, but I don't have them installed to test)
For for example
Code:
if action == "Up" then gir.SendKeys(handle, "<UP>") end
doesn't work, but
Code:
if action == "Up" then gir.SendKeys(nil, "<UP>") end
does.
Not sure if for some reason the script is geting the wrong handle for these apps or what the story is.
The script recognises when TMT3 is loaded as it says it in the log, but the sendkey isn't sending to the application correctly.
Obviously using "nil" means whatever has focus will get the key sequence, but I just couldnt get the commands to work for either app using the handle.
Oh and also the code assigned to the Stop/Exit action doesn't work for me...
It's looking for a number of processes and killing the first one it finds (I think it's finding Java on mine as I use this fo something else!), but then doesn't continue on to execute the Stop/Exit in the main script.