Jump to content
UBot Underground

Recommended Posts

Hi @ all,

 

i'm new to ubot and just now i test out what is possible with ubot.

My first littel scripts are made and i like to do automation without spending so much time for programming. :) 

 

Now i want to make the bots a little more complex and user friendly. For that i need help to understand some things.

 

What is a good way/solution to handle querys and input during the bot is running?

 

Example:

 

When starting the bot you must fill in the ui pannel password and login. Then the bot is logging into a website and scrape a list with data. After that the list should shown to the user so that he can put one result. At the moment i use the ui listbox because i need the variable to work forward. When i finished creating the bot i have to much ui commands

 

 

Is there a command to clear  the ui pannel? Are you using "load html/js"? When yes, how do you make a variable which you can see in the debugger? Or is there a other solution i don't see?  

 

Thanks for help

Link to post
Share on other sites

You can handle input while the bot is running, for example you can change the value of a ui element and have it change it real time.

 

But you can't clear the UI or show the debugger in a compiled bot.

 

If you have the dev version of Ubot you can make an HTML UI interface with tabs so they can see different UI layouts within the same bot.

Link to post
Share on other sites

Superfast response, nice.

 

I think to change the value is the way i been searching for.

 

Do the value of an ui element in a compiled bot change too when i set it in the script before?

 

How can i change the value? Is there a howto you know or can you explain it?

Link to post
Share on other sites

What I mean is if there is a textbox and the user puts in "helloinsomnia" and then later on changes it to be "michelinsy" then it will change that variable as well.

 

So if the bot is running and you change a dropdown value from 1 to 2 it will update instantly in the bot.

 

I hope this makes sense. You can test it by dragging in a ui text box then an alert command to alert what is written in the text box then a 10 second wait and another alert command. During the 10 second wait change whats in the text box and see that it changes in the variable in real time while the program is running.

 

Like so:

ui text box("input", #input)
alert(#input)
wait(10)
alert(#input)
Link to post
Share on other sites

ah, ok. That is not what i am looking for. 

 

When i create a checkbox in html and run js do you know how i can see the value in the debugger?

I have set a new Variable and write input element and run js with the new variable. But i can't get a value at the debugger.

Link to post
Share on other sites

I personally like using $prompt for logins.

For example

on load("Bot Loaded") {
    set(#checkpass, $prompt("Please Enter The Secret Password"), "Global")
    if(#checkpass = "SecretKeyExample") {
        then {
            alert("Login Successful!")
            comment("Login Was Successful")
        }
        else {
            alert("Login Failed!")
            comment("Login Failed.")
            navigate("http://failedloginexample.com", "Wait")
            wait for browser event("Everything Loaded", "")
            stop script
        }
    }
}

Extremely simple but just an example

Edited by Asentrix
Link to post
Share on other sites

Hi @Asentrix,

thank you. I will test it.

 

Hi @HelloInsomnia,

i have solved the problem that the checkbox with js give me no value. I have to put the $eval function in the set command to show the value in the debugger.

Edited by michelinsy
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...