Jump to content
UBot Underground

Can I Customize Error Popups?


Recommended Posts

Hi guys,

 

Is there a way to customize error message popups?

 

I have a bot that fires a process or executes a task every hour. My problem is that if I get disconnected from the internet and the bot tries to do its round of tasks, it fires an error message that shows (like a path) to which part of the process has fired the error. I want to customize that message and tell the user that they're experiencing net connection issues.

 

Has anyone tried this? Please share with me. Thanks!

Link to post
Share on other sites
 STATUS("may status", "true", "")
define STATUS(#STATUS, #ALERT, #LOGGING) {
    set(#C_status,#STATUS,"Global")
    if(#ALERT) {
        then {
            alert(#STATUS)
        }
    }
    if(#LOGGING) {
        then {
            append to file("{$special folder("Application")}\\logging.txt","{#STATUS}{$new line}","Beginning")
        }
    }
}
ui stat monitor("Status: {#C_status}","")

Put this anywhere in your code as many times as you wish.

 

Put true if you want an alert popup or leave blank if you don't.

Put true if you want to log to file, other wise leave blank.

 

Put the #C_status in a stat monitor to see as your bot works.

 

 

Logging to file is appending to top of the file so it is easier to find messages.

 

Regards,

Nick

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...