Jump to content
UBot Underground

nichewebstrategies

Fellow UBotter
  • Content Count

    22
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by nichewebstrategies

  1. If you are interested in a JavaScript only solution, give this a try:

    ui html panel("<!DOCTYPE html>
    <html>
        <head>
            <script type=\"text/javascript\" src=\"http://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.1.0.min.js\"></script>
            <script type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/clipboard.js/1.5.12/clipboard.min.js\"></script>    
        </head>
        <body>
            <textarea data-clipboard-text=\"\" id=\"txtWords\" cols=\'50\' rows=\'10\'></textarea>
            <button id=\"btnReplace\">Replace Words</button>
            <button id=\"btnCopyToClipboard\" style=\"display:none;\">Copy To Clipboard</button>        
            <script type=\"text/javascript\">
                $(document).ready(function()\{
                    $(\"#btnReplace\").click(function()\{
                        $(\"#txtWords\").each(function()\{
                            this.value = this.value.replace(/(\\r\\n|\\n|\\r| )/gm,\",\");
                        \});
                        
                        $(\"#txtWords\").select();    
                        $(\"#btnCopyToClipboard\").click();    
                    \});
                    
                    var clipboard = new Clipboard(\'#btnCopyToClipboard\', \{
                        text: function() \{
                            return $(\"#txtWords\").val();
                        \}
                    \});
                    clipboard.on(\'success\', function(e) \{
                        console.log(e);
                    \});
                    clipboard.on(\'error\', function(e) \{
                        console.log(e);
                    \});
                \});
            </script>
        </body>
    </html>",500)
    
    • Like 1
  2. What you are saying is that instead of passing in the Document HTML from the built in browser via a variable to your plugin, you want to access the browser document HTML directly from the custom plugin that you are writing, correct?

     

    Looking at the plugin API, there is no way to access the browser HTML directly in a custom plugin using the plugin API. That is something basic that needs to be made available via the plugin API in my opinion.

     

    That said, it might be possible to walk the WPF object tree and gain access to the browser object and retrieve it, but that is a pretty advanced topic and I am not 100% that would even work.

    • Like 1
  3. If you are selling bots and need to test how it works on different operating systems you can take advantage of Microsoft's Free Virtual Machine program.

     

    You can download Windows XP, Vista, Windows 7 and Windows 10 virtual machines here:

     

    https://dev.windows.com/en-us/microsoft-edge/tools/vms/windows/

     

     

    You will save yourself some headaches and support requests by doing a little testing ahead of time.

     

    • Like 3
  4. Hey Frank,

     

    You will want to take a look at SQL.js to accomplish this.

     

    https://github.com/kripken/sql.js

     

    I've used this, but not in UBot. The challenge is loading the db file and saving the db file and I had to use the persistent database example to make it work for my project. I don't think that method will translate well to UBot though.

     

    https://github.com/kripken/sql.js/wiki/Persisting-a-Modified-Database

     

    Take a look at the web worker example as I think that will be the best bet unless you are using node.js.

     

    Hope this helps.

     

     

  5. Just a heads up. If you are planning on code signing your ubot exe files you may be in for a surprise. I've tried signing basic bots using my code signing cert and they don't execute after the signing process.

     

    No error, no message. They simply don't work.

     

    If I build a custom c# app and code sign it, everything runs as expected, no issues.

     

    I'd be curious if anyone else has run into the same issues and if it is even possible to get it working.

  6. Yes I'm just giving the software away as a bonus for something that people were going to buy anyway.  Just give them a reason to buy through your link.  You can do this with hundreds of affiliate programs especially if your software is unique.   It beats having to setup sales funnels and etc.  Don't get me wrong i still sell my software but the affiliate income is just so much easier as you don't have to worry about charge backs or dealing with customer service issues.

     

    If you don't mind me asking, how are you reaching buyers? Do you have a large list you send offers to on a regular basis or do you create review web sites and offer your bots as a bonus from there? Social media promotion (twitter, facebook, etc.)?

  7. At the bottom of the page, there is a dropdown box that shows the number of pages that are available. The value attribute of each option in that dropdown has the url for that particular page.

     

    What I would do is use the following code to grab those urls and put them in a list, then you can loop through the list and navigate to each page to grab the data.

    add list to list(%pages,$scrape attribute(<value=w"/en-gb/auction-catalogues/1818-auctioneers/catalogue-id-sr1810075/search-filter*">,"value"),"Delete","Global")
    
    

    Hope this helps.

    • Like 1
  8. I'm putting together a tutorial website centered around web automation, but a big part of that will be based on UBot.

     

    I've created 4 tutorials on how to create UBot plugins which seems to be a pretty popular topic these days. Most people don't know how to get started and what software is involved so hopefully this will help those who want to learn get started.

     

    Let me know if there is a particular concept you would like for me to focus on for upcoming tutorials. I'd much rather write tutorials around what people want to see or want to learn about.

     

    http://www.webbottutorials.com/

     

     

    • Like 4
  9. Just started to create some custom plugins and when I compile the bot, it crashes when I try and open it up.

     

    It works fine if I am within Ubot studio, but once I compile the bot I can't run it.

     

    Currently, I don't have a plugin registration key. So I guess the question is can I run compiled bots with a plugin that has not been assigned a plugin key?

     

    I thought you could, but you would just get the nag screen. In my case, it opens for 5 seconds and closes with no error.

     

    If I remove the plugin reference, compile the bot and run it, the bot runs fine. It just seems to be when the plugin is activated it won't run,

     

    I am running Ubot Studio Professional, Windows 10, .NET Framework 4.6.

     

    Any help/knowledge would be most appreciated!

×
×
  • Create New...