jvd626,

To make sure that your script waits for the windows to get focus, use Do-Until, you should use something like this:

code:
Do
Sleep 1
Until SetFocus("Telephony LAN-Linx Config") = 0
SendKeys("~o")
Do
Sleep 1
Until SetFocus("Lan-Linx 2000 Installation") = 0
SendKeys("{ENTER}")

This should do the same job as your last script, but you don't have to guess how long to sleep!

-Erik