CryptoBot 0 Posted September 30, 2019 Report Share Posted September 30, 2019 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! Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 1, 2019 Report Share Posted October 1, 2019 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 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted October 1, 2019 Report Share Posted October 1, 2019 It's great for debugging your program too. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.