For anyone having trouble with this, I think this issue occurs on Windows 7 when the UAC level is changed from "default" to "do not dim my desktop". For Windows 8 you can use the above script, or for windows 7 I use:
GUI
DELAY 750
STRING CMD.exe
DELAY 750
CTRL SHIFT ENTER
DELAY 750
ALT Y
and it seems to work in places where the generic one doesn't.