Well... This is odd. I literally just pasted your script (apart from removing the line with Enter key being sent since I don't want to spam Blizz with a bunch of invalid logins from my IP) and changed the game path to match an installation for classic and it is working fine.
So... I'm not sure what to tell you... I guess personally I might just separate the auto-login from the launching process and have it under a separate hotkey that I use after all the clients are a launched, renamed, rearranged, etc.
Connect With Us