Jump to content
UBot Underground

WarrenIndLLC

Fellow UBotter
  • Content Count

    52
  • Joined

  • Last visited

Posts posted by WarrenIndLLC

  1. Hello,

     

    I'm trying to save an element image on a loop so that I continually save the images I download with the corresponding product title. The problem is, is that it continually save each image while the bot is running, but it overwrites the last saved file so there's always only one images being saved in the folder. On top of that, it's not changing the filename with the "next list item" in which it gives the image the same file name as the product. Here's the code:

     

    save element image(<style="width: 320px;">,"C:\\Users\\Home\\Desktop\\SonnysImages\\{$next list item(%ProductImageFileSaveTitle)}.jpg")

     

    Do you know what the issue could possibly be? Thanks.

  2. Hi Guys,

     

    I'm setting an IF statement. But for the IF to continue to THEN, I would like to check to make sure if certain text exists in an element. I haven't used uBot in awhile but I can't quite seem to accomplish what I'm trying to do.  It's probably super simple and I thought I would use a comparison, but not sure if you can compare an element?

     

    Again that's for your help.

  3. Hey guys,

     

    I'm currently having a problem with the Loop While function. I've searched the forum and really haven't found anything that could help me with it and this is really the first time I've used Loop While as I've never really needed to until now. What I'm trying to do is upload a file, then it enters the loop while until that file is finished. When the file is finished then it will change increment the variable from 0 to 1, thus breaking out of the Loop While and continuing with the script. Here is the code I have below:

     

    set(#SearchPage, 0, "Global")
        loop while($comparison(#SearchPage"=", 0)) {
            if($comparison($contains("Current Directory:""Current Directory:"), "="$false)) {
                then {
                    wait(5)
                }
                else {
                    increment(#SearchPage)
                }
            }
        }

     

    Now I have an IF statement in the loop while stating is "this text" isn't on the page, then wait for 5 seconds and I believe it continues the loop. But it just seems to hang there so I never get a chance to search for the text and then increment the variable so I can break out of the loop while. Does anyone know what could be the problem?

     

    Thanks

  4. So close I can taste it. I didn't bother waiting around to see if I could start the bot with an IF command in the batch file. But I'm able to save a new text file after I run the MySQL query. I'm pretty much there, my ONLY issue is that after it runs the query, if there is no information in the query then it will still save a blank text file. I'm using the text file as my IF statement. If present do this, if not do that. So I have to figure out how to only save the text file if there's info in the DB and then it's ready.

  5. Ok. I'm getting closer but I'm not a batch programming expert so if anybody has any input that would be amazing. I know you can read MySQL and even run queries from a batch file. So the idea is to:

     

    1. Run a batch file on a loop that can be hidden in the background (I have a code for this for a separate file so this can be done). The batch would be on a 5 second loop and I already have the code for this as well.

     

    2. The first thing the loop should do is connect to MySQL with the credentials, run a query and save that query to file (if data is present and the text file would be in an IF statement). I've seen multiple codes for this but am having a hard time finding the right one that goes with W7 (which is also Windows 2008 Server)

     

    3. Then comes the IF statements. IF there's data, then Save/Create txt.file. And IF there's txt.file, then delete file and open bot.

     

    4. Already have a separate batch file that the bot runs at the end in the Shell Command that will close the bot.

     

    So if anybody is semi fluent in batch coding that would be amazing. Otherwise, I'll continue to do a ton of research on this to see if I can find something that works.

  6. Each person will find their own unique way to use it (just like how I've done) and when you do I'd love for you to share it here so others can learn that method. However, if you're using Jotform then you'll know that there is an integration within the actual form you're using and this will allow you to create a new folder on your VPS or computer even though the jotform is hosted remotely. The local folder creation is important and a requirement. The integration is through Dropbox.

     

    If you've followed the steps I mentioned AND are using jotform with Dropbox integration then you'll know that when you submit a form it will create a new folder/file inside your Dropbox (installed on your PC or VPS).

     

    The next thing you need to figure out is "how do I know when the folder has been triggered?" and once the folder's created how do I a) start my bot and B) reset the whole thing so as I can do it all again?

     

    There's enough here to get you 95%-100% of the way there.

     

    Oh I'm already there. I've got everything set up and it works great... almost. Now I'm not using JotForm or DropBox.  But I have already setup my form on my WordPress website that when the customer inputs the info it then gets put in the DB. The bot then pull such info from DB when ran manually like it should and it does it's magic. So I'm just trying to figure out how to start the bot once there's new information/information at all in the DB. Then reset and close when it's finished.

     

    So I'm just trying to work that out but I'm somewhat stuck on it for the time being. Any advice would be greatly appreciated. 

  7. Hey guys,

     

    So, I'm trying to pull the first row of DB info to my bot. It connects to the DB just fine and I'm pretty sure I have the right code in, it just continually gives me blank results

     

    plugin command("DatabaseCommands.dll", "connect to database", "mysql:server=***.**.***.**;uid=******_push; pwd=*********; database=******_push; port=3306; pooling=false") {
        plugin command("DatabaseCommands.dll", "query with results", "SELECT * FROM \'sendpush\' LIMIT 1", &results)
    }
     
    When I test run that through uBot I get a blank return of results. Anybody have an idea of what it could be?
     
    Thanks
  8. Hey guys,

     

    Here's the problem.

     

    I'm trying to scrape data from URLs. The problem is that the URLs all have a slight variation. So I was able to create a list with the data that I want but there's also pieces that I don't want  in that list as follows.

     

    4853/DataThatIWant.html"

    0123/DataThatIWant.html"

    6879/DataThatIWant.html"

    3748/DataThatIWant.html"

    6859/DataThatIWant.html"

    0794/DataThatIWant.html"

     

    I was wondering if there's a way that I can pull everything between the / and the " in that list? Kind of like page scraping that list to create a new list with clean Data that I want.

     

    Thanks

  9. Hey guys,

     

    I haven't been on here in awhile but decided to make a bot to help with some productivity on a project but I've caught a snag.

     

    Basically when visit a particular page I want to set a date in a particular field but the current date is already there. When I run the bot, it doesn't delete the current date in the field, it seems to stay there and just adds the extra date to the end. For example after I run the bot the date looks like this:

     

    1/21/20131/28/2013

     

    So what I need to do is delete whatever is in the date field first and then add in the new date. But I don't see a function that lets me select the field and delete the information in it. It's been awhile since I've used Ubot so I'm sure that's part of the reason why I haven't figured this out. Any help will be appreciated.

     

    Thanks

     

  10. Here's a coding question for you guys.

     

     

    Occasionally when I run my bot I get server errors. So I basically put if statements all through out the bot. IF the $searchpage contains xx amount of information, it will THEN continue to implement the information on that page and continue. BUT if ELSE, then there will be a popup and I have the script stop.

     

    I would like to change this. I will Pause, the bot for a specific amount of time, but then I want the bot to RETURN to a specific location in the loop to retry the specific action again until it can continue. Do I use the Return flow command function to to this? And how would I script this?

     

    Thanks

  11. Ok. So I have two txt files of 10000+ names.

     

    What I want to do is pretty simple. I don't want to upload the list from file as I don't want to have to have my users figure that out, but I want to put that list directly in the bot. Each name is on it's own line. I figured out I just cant "Add To List" then copy/paste the names as when I do that it just puts all the names on a single line. I also tried the $list from text with no success.

     

    So how would I add these names to list, and just be able to copy/paste the names in the bot (not in the user interface but in the code itself).

     

    Thanks

  12. Actually the pop-up says:

     

    One or more ActiveX controls could not be displayed because either:

     

    1)Your current security settings prohibit running ActiveX controls on this page or,

     

    2)You have blocked a publisher of one of the controls.

     

    As a result, the page might not display correctly.

  13. I'm running a script I created that scrapes Ezinearticles. It searches for certain keywords, finds an article, scrapes then it auto posts. I have it choose a random article by spinning where the links are for instance {7|9|11|13} then A. Because I don't want it to grab the same article every time that certain keyword pops up.

     

    Well, sometimes not enough articles are submitted for a certain keyword, so then it clicks the corresponding link that takes the place of where a full amount of articles usually would be. But sometimes it clicks a link and I get a pop up stating that it won't let me continue because of a Web Browser problem with a Direct X plug in or whatever.

     

    Is there a way I can just discard any browser errors so I can keep it running without having me get that pop up concerning the browser and stopping the work until I press ok?

     

    Thanks

  14. Ok, this maybe a total noob question.

     

    But I'd like to know how I can loop on a list in order until the end of the list.

     

    I set the "Cycles" of the look to "$next list item" then chose the list I wanted to start the look with figuring this would be the way, but it's obviously not.

     

    So how would I go about this?

     

    Thanks

×
×
  • Create New...