Vibie 0 Posted October 15, 2013 Report Share Posted October 15, 2013 Hello, and thank you in advance! I want to create a dropdown menu that will have 3 options to run 3 different scripts. How is this possible? I made 3 different loops but I can't figure out how to connect them to the drop down menu I made. Thanks! Quote Link to post Share on other sites
LazyBotter 188 Posted October 15, 2013 Report Share Posted October 15, 2013 Here you go: ui drop down("Select Script", "Script One,Script Two,Script Three", #Script_Selection) ui button("Start") { if($comparison(#Script_Selection, "=", "Script One")) { then { Script One() } else if($comparison(#Script_Selection, "=", "Script Two")) { Script Two() } else if($comparison(#Script_Selection, "=", "Script Three")) { Script Three() } } } define Script One { alert("Script One Running!") } define Script Two { alert("Script Two Running!") } define Script Three { alert("Script Three Running!") } Carl Quote Link to post Share on other sites
LazyBotter 188 Posted October 15, 2013 Report Share Posted October 15, 2013 Here you go mate,Dropdown_Multi_Script.ubot Quote Link to post Share on other sites
Vibie 0 Posted October 15, 2013 Author Report Share Posted October 15, 2013 (edited) Thanks! Edited October 15, 2013 by Vibie 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.