Jump to content
UBot Underground

Automatically Run A Command After User Input In A Ui Textbox?


Recommended Posts

Hi,

 

Is there a way to do this?

 

After user input some text in a textbox, make the bot automatically populates another textbox instantly with some predefined value without having to click a button.

 

Example of what I want:

textbox 1: examplesite.com

textbox 2 (automatically): examplesite.com/go

 

Thanks very much

Edited by hoanglo
Link to post
Share on other sites

if you mean in the UI HTML Panel, then you will need javascript, if in the browser, can do it using ubot, here you go for HTML Panel

ui html panel(" <label for=\"TheInput\">Input</label>
<input type=\"text\" onChange=\"document.querySelector(\'#TheReciever\').value=this.value+\'/go\'\" id=\"TheInput\"/>
</br>
<label for=\"TheReciever\">Output</label>
<input type=\"text\" id=\"TheReciever\"/>",200)


  • Like 2
Link to post
Share on other sites

Heres a second example you might prefer this, this will just change whatever you input in the same box saving your UI some space

ui html panel(" <label for=\"TheInput\">Input</label>
<input type=\"text\" onChange=\"this.value=this.value+\'/go\'\" id=\"TheInput\"/>
",200)

  • Like 1
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...