botoballs 2 Posted December 3, 2014 Report Share Posted December 3, 2014 Hi I am still learning here but I am figuring out how you all do logging system.A system to display custom words in Ui showing each process the bot is doing.Example if I make a bot to go to google.com the log in my UI will show "You are now viewing google website" and if the bot enters a word that will disappear then will show "Entering keyword".Or is there a way to add an timer image that shows a timebar.gif and when bot is done it will show the word "Done!" then the timebar.gif will disappear and will show "Done!" or another image. Any examples? Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 3, 2014 Report Share Posted December 3, 2014 Here one way, save to file("{$special folder("Desktop")}\\log.txt","") Current Status("Step 1") wait(2) Current Status("Eating breakfast!!") wait(2) Current Status("Eating Lunch!!") wait(2) Current Status("Eating Din Din!") ui stat monitor("Status: {#C_Current_Status}","") define Current Status(#STATUS) { set(#C_Current_Status,#STATUS,"Global") append to file("{$special folder("Desktop")}\\log.txt","{#STATUS}{$new line}","Beginning") set(#UI_LOG,$read file("{$special folder("Desktop")}\\log.txt"),"Global") } ui block text("Log...",#UI_LOG) CD 3 Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted December 3, 2014 Report Share Posted December 3, 2014 With time stamp save to file("{$special folder("Desktop")}\\log.txt","") Current Status("Steo 1") wait(2) Current Status("Eating breakfast!!") wait(2) Current Status("Eating Lunch!!") wait(2) Current Status("Eating Din Din!") ui stat monitor("Status: {#C_Current_Status}","") define Current Status(#STATUS) { set(#C_Current_Status,#STATUS,"Global") append to file("{$special folder("Desktop")}\\log.txt","[{$plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "Sortable date/time", "en-US", "en-US")}] {#STATUS}{$new line}","Beginning") set(#UI_LOG,$read file("{$special folder("Desktop")}\\log.txt"),"Global") } ui block text("Log...",#UI_LOG) need datetime PI from Ubotdev.com 3 Quote Link to post Share on other sites
addy196 9 Posted January 26, 2015 Report Share Posted January 26, 2015 With time stamp save to file("{$special folder("Desktop")}\\log.txt","") Current Status("Steo 1") wait(2) Current Status("Eating breakfast!!") wait(2) Current Status("Eating Lunch!!") wait(2) Current Status("Eating Din Din!") ui stat monitor("Status: {#C_Current_Status}","") define Current Status(#STATUS) { set(#C_Current_Status,#STATUS,"Global") append to file("{$special folder("Desktop")}\\log.txt","[{$plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "Sortable date/time", "en-US", "en-US")}] {#STATUS}{$new line}","Beginning") set(#UI_LOG,$read file("{$special folder("Desktop")}\\log.txt"),"Global") } ui block text("Log...",#UI_LOG) need datetime PI from Ubotdev.com Very Help Full ... Code Docta Rocks As Always Quote Link to post Share on other sites
deliter 203 Posted February 1, 2015 Report Share Posted February 1, 2015 I have just posted a tutorial on callback functions,and on the code I've wrote for the wrong way of doing them,it uses a log that logs but you can also write to the log to make the bot perform a task,remotely 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.