mIRC Homepage
Posted By: shadowdemon On Error event problems - 18/10/03 08:37 PM
Ok i was lucky or unlucky as the case may be to get the following error (yet again)

[21:09] * [10053] Software caused connection abort


I had been reading the mirc help file a few days ago and found the "On Error" event, i quickly made the following code, incase i did recieve the following error i could be visually notified.

Code:
on *:error:*[10053] Software caused connection abort*:/dialog -m abort abort

dialog abort {
  title "[mIRC Error]"
  size -1 -1 100 30
  option dbu
  text "[10053] Software caused connection abort", 1, 2 2 96 8, center
  button "Close", 2, 30 13 37 12, ok cancel
}


This does not popup the above dialog when i recieved the error, i looked at the help file again just to make sure it was correct, the file says that the event trigger is much like the "On Text" event.

If i type "/dialog -m abort abort" in the command line i get my dialog popped up on screen, but i would rather have a nice dialog that tells me when i get the error instead of an unpleasent surprise when i go to type something and i get that i`m not connected.

My Question is Why doesnt this event work ?

Note: if i do get this working, i plan on making a better dialog

Thanks inadvance
ShadowDemon
mIRC V6.12
Posted By: Iori Re: On Error event problems - 18/10/03 09:02 PM
That error number and message is not sent by the server, and on error is only for server sent error messages.
Posted By: shadowdemon Re: On Error event problems - 18/10/03 09:05 PM
Oh right, sorry didnt realise, guess i`ll have to script a new dialog for "On Disconnect" event then

Thanks for explaining that for me.

ShadowDemon
© mIRC Discussion Forums