Thanks everyone!
Especially for the +
rep
The script failed to put the device in sync for me a few times, so I changed one delay in the script, and it seems to work every time now.
I'm not sure it will be possible to hide the program while the script is running since the program doesn't use standard controls that autoit can detect.
But this is still better than the old way of unlocking.
I definitely plan on making an installer for this, i should be able to get that done tonight.
Also if anyone knows of a hotkey to get the zune software to start sync we can replace all the tab and enter keysends in the script with that hotkey.
That would make this much smoother.