BillC 0 Posted January 26, 2018 Report Share Posted January 26, 2018 I was wondering if there is a way of hiding the UI panel after it is filled out by a user to maximize the browser window space. I want to be able to get some input from the user and then hide the panel as it would no longer be used. Thanks. Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted January 26, 2018 Report Share Posted January 26, 2018 You need advanced ubot plugin from pash for that. Im not sure if there's a free one. Quote Link to post Share on other sites
Brutal 164 Posted January 26, 2018 Report Share Posted January 26, 2018 sure.... put all of your html into a variable and call that variable in the html panel screen.... then once you are done with the gui, set the var value to nothing and refresh the gui.... this will remove it.... Note- this is all theory, I haven't tried it. Quote Link to post Share on other sites
darryl561 177 Posted January 27, 2018 Report Share Posted January 27, 2018 A free workaround would be to use a ui html window instead of the ui html panel and have it open onload, then have it close when the user clicks a button to run the bot. Example code: on load("Bot Loaded") { plugin command("WindowsCommands.dll", "keyboard event", "Alt", "Key Press") plugin command("WindowsCommands.dll", "keyboard event", "t", "Key Press") plugin command("WindowsCommands.dll", "keyboard event", "Enter", "Key Press") } define demo { plugin command("WindowsCommands.dll", "close window", "demo", "") navigate("http://www.google.com","Wait") type text(<name="q">,#search,"Standard") click(<name="btnK">,"Left Click","No") } ui html window("demo","<!DOCTYPE html> <html> <head> <style> body \{ background:#777; margin: 50px; \} </style> </head> <body> <input variable=\"#search\" fillwith=\"value\"placeholder=\"Search Term\" style=\"width:200px;height:30px;border-radius:4px;\"> <br><br> <button onclick=\"ubot.runScript(\'demo()\')\"><!--lab-->Continue</button> </body> </html>",400,400) Quote Link to post Share on other sites
BillC 0 Posted January 27, 2018 Author Report Share Posted January 27, 2018 Thanks for the great ideas. I will give them a try. 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.