Jump to content
UBot Underground

Recommended Posts

Hello everyone, having some issues with the UI Editor drop down menu. For some reason it never actually pulls the right variable when I choose to run the bot only when I run the node. Any ideas as to why this would be happening? There are two options in the drop down, and regardless of which one is chosen it always does the else statement. Am I missing something?

IPGroupGen(#SelectedRange) {
        set(#SelectedRange,#RangeDropDown,"Global")
        if($comparison(#SelectedRange,"= Equals","104.250.147.146")) {
            then {
                change dropdown(<name="server">,"104.250.147.146")
            }
            else {
                change dropdown(<name="server">,"104.250.139.18")
            }
        }

The If statement above uses the variable Selected Range to check if the UI was set to 104.250.147.146, if it was, then it it changes the drop down menu on the page the script is for. I am using change dropdown for the actual page the bot is running on not the UI. I am strictly using the UI to choose before the bot runs which to drop down menu to select on the for the bot. So for instance if I selected the one ending in 146 then it should change the drop down menu on the page the bot is running on to 146, if it is not set to 146, but 18 then it should change that element to the one ending in 18.
 
http://pasteboard.co/2HcWTCHL.jpg

Edited by Kabone
Link to post
Share on other sites

change dropdown is for the browser window, not the UI window(I think) , have never used it before

I've updated the post to reflect what I am trying to accomplish. I am using the UI Dropdown for the UI, and change dropdown for the actual page. I just needed a way to see which was selected so the bot could choose the correct option. Which isn't happening..

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