Jump to content
UBot Underground

What is a simple UI log system?


Recommended Posts

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?

:)

Link to post
Share on other sites

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

  • Like 3
Link to post
Share on other sites

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

  • Like 3
Link to post
Share on other sites
  • 1 month later...

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  :D

Link to post
Share on other sites

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

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...