Jump to content
UBot Underground

darryl561

Fellow UBotter
  • Content Count

    555
  • Joined

  • Last visited

  • Days Won

    33

Posts posted by darryl561

  1. Use "File Select" instead of a button to add an Open File element.

    The Start button works fine, you just need to add a define to your bot called "Start" and add your commands to the define.
     

    ui html panel("--Open File Button--
     
    <input variable=\"#localBizs\" fillwith=\"value\" type=\"file\" id=\"addimager89966\" dialogtype=\"open\" name=\"file\" class=\"button08\" style=\"text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:800;color:#000000;border-radius:9px;\"><!--lab-->Load Local Business File</input>
     
    --Run Button--
     
    <button id=\"addimager246634\"  onclick=\"ubot.runScript(\'Start()\')\" class=\"button02\" style=\"text-decoration:none;padding:7px 15px;font-family:Georgia;font-size:18px;font-weight:400;color:#ffffff;border-radius:6px;\"><!--lab-->Create Driving Directions</button>",333)
    define Start {
        alert("Button is working")
    }
    
    
  2. 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)
    
  3. Been playing around with GUI Hero today and so far I really like it... I did notice a few bugs, for example when I use radio buttons in ubot 4, it doesn't switch between the 2 radio options, it just keeps reverting back to the original. It works normal in Ubot 5.

     

    Also, is there a way to delete unused variables that the code produces when we delete elements from the GUI? I've noticed after building my gui, it has a bunch of variables that I created and deleted.

     

    I'm also getting random things like the following, and not sure where they came from or how I would delete them...

    I don't see those input boxes on my GUI anywhere.

     

    Another thing I noticed is when i add custom javascript to my GUI, and then I go back in and edit them... every time I go in and edit it, it duplicates the code... for example

     

    1) If radio buttons don't work in ubot 4 then It must be a ubot problem.

     

    2) When you delete an element it's variable will be deleted as well. I just tested again and the variable of the deleted element did not show up in ubot.

     

    3) Where is that "random things" code showing up? I have not seen or had reports of that kind of thing happening before. Can you send me the .txt file

         for the ui that this is happening in? You can find it in the C:\GUI Hero\projects  folder.

     

    4) You can't edit custom script in the builder. If you try to edit it you will actually "add" the "edited" version as well. To edit custom script

         you will have to edit it's code inside the UI HTML Panel.

     

    Cheers.

  4. I can't find the thread and can't remember who shared it but I had saved this stop/pause/resume code:

    ui html panel("<button onclick=\"ubot.runScript(\'run_bot()\')\">Start</button>
    <button onclick=\"ubot.runScript(\'stopbot()\')\">Stop</button>
    <button onclick=\"ubot.runScript(\'pausebot()\')\">Pause</button>
    <button onclick=\"ubot.runScript(\'un_pausebot()\')\">Un-Pause</button>",300)
    define run_bot {
        load html("Hey")
        wait(1)
        Stop Pause Check()
        load html("I")
        wait(1)
        Stop Pause Check()
        load html("Hope")
        wait(1)
        Stop Pause Check()
        load html("This")
        wait(1)
        Stop Pause Check()
        load html("Helps")
        wait(1)
        Stop Pause Check()
        load html("You")
        wait(1)
        Stop Pause Check()
        load html("Understand")
        Stop Pause Check()
        load html("How")
        Stop Pause Check()
        load html("To")
        Stop Pause Check()
        load html("Pause")
        Stop Pause Check()
        load html("and Un Pause")
        Stop Pause Check()
        load html("Your Bot")
    }
    define Check Stop {
        if($comparison(#stopnow,"=",$true)) {
            then {
                set(#stopnow,$false,"Global")
                stop script
            }
            else {
            }
        }
    }
    define Check Pause {
        if($comparison(#pause,"=",$true)) {
            then {
                wait(1)
                Check Pause()
            }
            else {
            }
        }
    }
    define Stop Pause Check {
        Check Stop()
        Check Pause()
    }
    define pausebot {
        set(#pause,$true,"Global")
    }
    define un_pausebot {
        set(#pause,$false,"Global")
    }
    define stopbot {
        set(#stopnow,$true,"Global")
    }
    
  5. could you help to show the code for checkbox and dropdown as the code above in html,thanks!

     

    Changed the dropdown to run a define "onchange" rather than "onclick"

    ui html panel("<select onchange=\"ubot.runScript(\'test()\')\" variable=\"#dropDownVar\" fillwith=\"value\" style=\"width:60px;height:30px;border-radius:4px;\">
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    <option>9</option>
    </select>
    <br>
    <br>
    <input type=\"checkbox\" variable=\"#male\" fillwith=\"checked\">male
    <br>
    <input type=\"checkbox\" variable=\"#female\" fillwith=\"checked\">female",200)
    define test {
        if($comparison(#dropDownVar,"=",4)) {
            then {
                alert("Execute something!")
            }
            else {
                alert(#dropDownVar)
            }
        }
    }
    
  6. Hey again,

     

    This may have an easy answer I'm just not seeing, but how can i get the checkbox text to spread to the right (or left i guess) of the checkbox, rather than in a tall column as shown in the picture I attached?  Id like to see it in one solid line to the right.

     

    http://i.imgur.com/pn3f7Ra.png

    Thanks, still loving the heck out of GUI Hero!

     

    Watch this: https://youtu.be/z0vfCMwTpx0?t=1m3s  just make the width as wide as you need to.

  7. hi , is there any way to remove Untitled Bot and those texts ?

    thank

     

     

    I think the "Untitled Bot" would be there because you have not given your source bot a name and saved it.

     

    Regarding "those texts" it is a ubot issue. tripros asked me about that exact same thing once, he contacted support and this is what he told me about that problem:

     

    Thanks much Darryl, just a quick update on this. Contacted Ubot and it appears to be a Ubot issue when you select all optional compiling options (remove branding, menus, browser, etc).

    They added the issue to their tracker and will be hopefully addressing the issue in the next ubot update. 

     

     

    i tried but cannot tick on it 

     

     

    You only have 1 tab so that would be why you cannot select it.

  8. purchased .

    and i got a problem , when i run program , nothing happens

     

     

    Hi afkratien,

     

    all I can think to suggest is to check if you have net framework 4.6.2 or higher installed.

    If thats not the cause of the problem then I'm sorry but I don't know what the problem would be.

     

    I run windows 10 , 64 bit and GUI Hero works fine on that, so not sure if being 32 bit would cause an issue or not.

     

    If you cannot get it to work then let me know and I will refund you.

     

    Darryl.

  9. Hi Darryl,

     

    Nicholas Capasso  recommended to use your product for replacement for UBOT Studio GUI.  You have two products?  Do you need them both?

     

    No you don't need them both.

     

    If you want to use ubots default editor and just add styling to it then I would recommend using UI Editor Genie.

     

    If you want more options and features than what is available in the default editor for creating your gui's then I would recommend GUI Hero

     

    Cheers.

  10.  

    Hi Peter, unfortunately when I add new features to GUI Hero now I am not able to get it to compile. I don't know why but I put it down to it being such a big bot.

     

    Should be able to add it manually though, will PM you how to do it.

  11. hey. new here. am using ubot to hack together a poc. my (first) question is about the tabs in the design window. how can i (or can i?) move between them programatically? say for example as a result of a select case... condition 1 the program flows to script a, condition 2... script b and so on. this is my first look at ubot as a rapid dev tool so i am still feeling my way around. can we jump scripts? it wouldnt make sense if everything has to flow top to bottom. thx      

     

    You can do that with GUI Hero. See this post: http://network.ubotstudio.com/forum/index.php/topic/19292-sell-gui-hero-the-ultimate-easiest-tool-for-creating-ubot-guis/?p=126119

     

    You will need the developer(maybe pro) edition though.

  12. I need to be able to select multiple items from the listbox (using shift+click i'll guess), but I'm not sure where to even begin with that.  Got any examples or  potentially videos on selecting multiple values from a listbox that is filled as data is introduced?  (dont need it to be super quick or anything, just need it to multi-select)

     

    Not sure how you can add a multiple select listbox to the ui. 

     

    pash's Advanced Dialog Plugin has a "listbox dialog" that can be used to select multiple items. It can't be added to the ui but you could set it to open either automatically once the data is added or from clicking a button in the ui.

  13. Hey there,

     

    Anyway you could give us a tuorial/example of how to get something like a jquery datagrid into GUI Hero?  Still loving the product, just trying to see where else I can take it!  Thanks 

     

    I think you would need to use "load html" in the browser to display a jquery datagrid.

    The only way I can think of to display it in the ui html panel would be to create the table/datagrid with your bot and set the entire datagrid as a variable.

    But if it has a lot of data I think it could cause your bot to freeze more-so than if you display it in the browser.

     

    There are others here that are far more knowledgeable about this than me though, so might pay to check with others.

  14. If I'm right about what you are trying to do the code below should do it.

     

    Where you have ubot.runScript(\'SetStatus(Good)\') you need to replace Good with a numerical value.

    ui html panel("<button onclick=\"ubot.runScript(\'SetStatus(0)\')\">GOOD</button>
    <button onclick=\"ubot.runScript(\'SetStatus(1)\')\">BAD</button>
    ",100)
    define SetStatus(#Status) {
        if($comparison(#Status,"= Equals",0)) {
            then {
                set(#Status2,"Good","Global")
            }
            else {
                set(#Status2,"Bad","Global")
            }
        }
        alert(#Status2)
    }
    
×
×
  • Create New...