Jump to content

Recommended Posts

Posted (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 :P

$text = StringLeft(WinGetText("Project", ""), 8)

If $text = "Run-time" then

Exit

Endif

EndIf

Help would be greatly appreciated :D Ant

Edited by anixon

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...