Sign in to follow this  
Followers 0
johna007

Error control

4 posts in this topic

How can i run a function, if there is error in that funtion to just bring up a my own message box.

And not close the program ?.

johna007

Share this post


Link to post
Share on other sites



Search help for "RunErrorsFatal". That is what you need.


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

i have made i script for it...

While Send ("!M")
                                            Sleep (500)
     send ("{ENTER}")
                                                Sleep (500)
      Send ("{ENTER}")
    sleep (1000)

If WinActive ("Session Error", "Unrecognised panel received unexpectedly during logon" ) Then
    Sleep (1000)
    Send ("{enter}")
    sleep (200)
    Send ("{enter}")
    sleep (200)
    Send ("{enter}")
    sleep (200)
    Send ("{F3}")
    Sleep (200)
    Send ("{F3}")
    
    sleep (1000)
    
                else 
                    ExitLoop

   EndIf    



WEnd

I explain....

This first command is that it have to open some files with the progres bar...

if thats done it waits 1 second

it looks for the specified window (the error)

if there is now error it go's on if there is an error it wil loop until the error don't come up

Share this post


Link to post
Share on other sites

I explain....

This first command is that it have to open some files with the progres bar...

if thats done it waits 1 second

it looks for the specified window (the error)

if there is now error it go's on if there is an error it wil loop until the error don't come up

Don't follow you... What goes wrong? Please put more structure in both your code and your comments...


Roses are FF0000, violets are 0000FF... All my base are belong to you.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0