Jump to content
UBot Underground

2 small things keeping me from my first bot!


Recommended Posts

I have 2 quick questions I need help with.

 

1)I have created a button in the UI HTML panel. I want to use the button to start the bot. What code do I need to enter to accomplish this?

 

2)The information that the user enters is covered on 2 tabs (about 11 fields so divided into 2). Is there a way to code a button to go to the next tab when clicked? I realize you can do so bu just clicking the tab, but would like to make it as userfriendly as possible.

Link to post
Share on other sites

Here's the code for UIbutton <button onclick="ubot.runScript('your define command()')"></button> just replace the "your define command" with your bot "define" that you wanted to execute.

 

On your second question I think its not possible inside ubot at the moment.

Link to post
Share on other sites

Check this code to get a better understanding:

 

ui html panel("<input type=\"submit\" value=\"Submit\" onclick=\"ubot.runScript(\'google()\')\"/>", 50)
define google {
   navigate("http://www.google.com", "Wait")
   alert("Done!")
}

  • Like 1
Link to post
Share on other sites

Thanks a bunch guys! After spending the day figuring it out, the bot is now complete. Now Google has thrown me a curve and flipped the text I enter backwards.... :P Guess I will have to figure a way around it before I release to the public.

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