Jump to content
UBot Underground

Hide Ui Panel


Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

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