Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popup msgbox on error

Status
Not open for further replies.

Corwyn

Technical User
Jul 14, 2003
28
BE
Hi,

I just start using procomm plus and Aspect.
I would like to be informed when error occurs in connection.
Do you know a script that displays a msgbox (or plays a sound) when receiving predefined error code as (for example) ERR01?
 
If this error message is something sent by the remote system, then you could use the when target command to detect it being sent, then call a procedure that performs the necessary steps. Here's an example of how it may look:

when target 0 "ERR01" call display_errmsg

proc display_errmsg
errormsg "ERR01 received"
endproc

You could also use the mciexec command to play a WAV file.


aspect@aspectscripting.com
 
Thanks Knob!
I had just find how to do the script.
I used the usermsg and beep command instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top