anixon Posted December 15, 2006 Posted December 15, 2006 (edited) I am testing a communictations port where the script uses the NetComm.OCX routine. I am trying to error trap the process when the modem is physically disconnected. When this happens I am get the following screen Tile: Project1 Message: Run-time error '8021': Internal error retrieving device control block for the port User Response = OK Neither of these error traps work If WinGetTitle("Project1", "") Then ControlClick("Project1", "", "Button1") Exit EndIf If WinGetTitle("Project1", "") Then I have been able to resolve this issue Cheers Ant $text = StringLeft(WinGetText("Project", ""), 8) If $text = "Run-time" then Exit Endif EndIf Help would be greatly appreciated Ant Edited December 22, 2006 by anixon
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now