Yagami 1 Posted November 18, 2017 Report Share Posted November 18, 2017 Hi, I was wondering if I can create my own menu and can we open a window where the user can enter his preferences on how the bot will work?An exemple would be appreciated. Thx, Quote Link to post Share on other sites
Sanjeev 46 Posted November 18, 2017 Report Share Posted November 18, 2017 This might help... http://wiki.ubotstudio.com/wiki/UI_html_window Also, there are paid options.. where you can have custom html dialog open up..which can store values to a ubot list or variable. 1 Quote Link to post Share on other sites
Yagami 1 Posted November 18, 2017 Author Report Share Posted November 18, 2017 Thank you Sanjeev, That was helpful, but I want my own menu in a different language.I want to either translate the actual menu and add my own fields or completely hide the English menu and create my own. Is that possible?An other option would be to have all my UI in my main tab and access my other tabs through a button.Example :In the screenshot below I want to be able to login in the actual tab and scrape followers which the code is in another hidden tab but still execute on the browser of the first tab. Thank you. Quote Link to post Share on other sites
HelloInsomnia 1103 Posted November 19, 2017 Report Share Posted November 19, 2017 For this you should hide the Ubot menu and instead just make your own in HTML. You could either have a tab which has the settings or you can get a plugin which would allow you to open a new window for it instead. Here is how to setup the tabs, notice the display style is block for the first tab this is what shows by default and its none for the rest. When you switch tabs this switches. ui html panel("<html> <head> <script> function activateTab(pageId) \{ var tabCtrl = document.getElementById(\'tabCtrl\'); var pageToActivate = document.getElementById(pageId); for (var i = 0; i < tabCtrl.childNodes.length; i++) \{ var node = tabCtrl.childNodes[i]; if (node.nodeType == 1) \{ /* Element */ node.style.display = (node == pageToActivate) ? \'block\' : \'none\'; \} \} \} </script> </head> <body> <div id=\"navbuttons\"> <input type=\"button\" class=\"navbutton\" value=\"Tab One\" onclick=\"javascript:activateTab(\'tabOne\')\"> <input type=\"button\" class=\"navbutton\" value=\"Tab Two\" onclick=\"javascript:activateTab(\'tabTwo\')\"> <input type=\"button\" class=\"navbutton\" value=\"Settings\" onclick=\"javascript:activateTab(\'settings\')\"> </div> <!-- End navbuttons --> <div id=\"tabCtrl\"> <div id=\"tabOne\" style=\"display: block;\"> first tab </div> <div id=\"tabTwo\" style=\"display: none;\"> second tab </div> <div id=\"settings\" style=\"display: none;\"> settings tab </div> </div> </body> </html>",400) 1 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.