Kabone 0 Posted May 9, 2017 Report Share Posted May 9, 2017 (edited) 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 May 9, 2017 by Kabone Quote Link to post Share on other sites
deliter 203 Posted May 9, 2017 Report Share Posted May 9, 2017 change dropdown is for the browser window, not the UI window(I think) , have never used it before Quote Link to post Share on other sites
Kabone 0 Posted May 9, 2017 Author Report Share Posted May 9, 2017 change dropdown is for the browser window, not the UI window(I think) , have never used it beforeI'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.. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.