it's not a good idea to use sleep. Sleeping may always wait (in this case) 1 second, but some machines may take longer than 1 second to load the prompt. Basically, you are having to guess how long it will take that window to appear, and shoot in the dark at an approximate range. I suggest using a findwindow API call, and put yourself in a do loop.... say, do until the return value of findwindow is not 0, then sendkeys to the window.
Comatose 290 Taboo Programmer Team Colleague
Comatose 290 Taboo Programmer Team Colleague
Comatose 290 Taboo Programmer Team Colleague
Comatose 290 Taboo Programmer Team Colleague
Comatose 290 Taboo Programmer Team Colleague
Comatose 290 Taboo Programmer Team Colleague