Jump to content
UBot Underground

JohnnyFive

Members
  • Content Count

    16
  • Joined

  • Last visited

Posts posted by JohnnyFive

  1. my question is: it is possible to click on image(image recognition) with ExBrowser?

    ...not with simple click(<image="___IMAGE___3___IMAGE___">,"Left Click","No")

     

    Oh, sorry I thought that was the default browser.  I'm new here.  

     

    It may be possible to do it with python and sikulex, however I haven't had to do this from UBot myself.  But if ExBrowser doesn't do it, I would imagine this should work just fine, but it will add dependencies to your program.

  2. Sorry to grave-dig here, but I have major issues running UBot 5.9.17 with bootcamp.  I have a macbook with 2.90Ghz i7 processor and 8GB RAM.  I shouldn't be having these issues, I don't think.

     

    I have been trying to track down an answer as to what is causing performance issues and I'm guessing it's because of bootcamp at this point.

  3. Sorry i cant give you the pearl of wisdom you were hoping for, 

    If i think of anything else ill come back to this thread, but im not a MAC guy so not really able to offer anything from that angle :P

     

    Hey, no worries!  I really appreciate you taking time out of your day to look at this.  Thanks again!

    • Like 1
  4. Ah, well if this is happening even set to Chrome 21 then there must be something wrong, .. 

     

    Can you show an example of the User Agents you are using that are causing the crashing/stalling ?

    are there any that are consistently ? ... or is it random ?

     

     

     

    CJ

     

    It is a consistent lock-up/crash with any user agent I set.

     

    Here is the list I'm working with.

     

    Mozilla/5.0 (X11; U; Linux i686; en-gb) AppleWebKit/525.1+ (KHTML, like Gecko, Safari/525.1+) epiphany-webkit
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_6) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_4) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.112 Safari/534.30
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1
    Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1
    Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.71 Safari/537.36
    Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
    Mozilla/5.0 (Windows NT 6.1; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
    Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
    Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0
    Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0
     
    I'm wondering if it's a graphics related thing or possibly driver related issues as I'm running Windows as a dual-boot with Bootcamp on a MacBook.  The only problem is that these issues seem to crop up with UBot Studio randomly.  It hasn't always behaved like this.  It's like my version has random, explainable issues that sometimes just disappear after a couple days. :(
     
    I am just having one helluva time trying to figure out if it's a UBot problem or a hardware / OS problem, because I feel like if this was the normal experience everyone had, nobody would be using UBot and there would be more posts about it.  Not trying to knock it or anything like that, I'm just saying... It can be really frustrating trying to get stuff done when your tools are fighting you, lol.
     
    I was testing this earlier today without issues, then it just randomly started being a pest.  Same code, nothing has changed.  Problems persist between program restarts and computer reboots which is really odd.
  5. Hi, 

     

    8Gb sounds plenty to be honest, 

    and 280 lines of code is not a lot of code for it to be crashing and reacting the way you mention, .. 

    Just to put this into perspective, the "smallest" define in the project im working on at the moment has 396 lines and thats just 1 define among about 8 in each of 9 tabs, 

    god knows how many lines in "Total" and Im not lagging yet, .. 

     

    Hmm, .. 

    I see in the example you provided you are changing User agent, how often is it doing this ?

     

    also are you executing this in a single or multi-thread environment ? 

     

    Which browser version do you have selected in the "Tools/Options" menu ?

    settings to 39 can be buggy and those that have problems just switch to 21 which solves a lot of problems, 

     

     

    one thing i have noticed is crashing when changing user agent more so using Chrome 39,

    but in fairness since the latest version I havent had any issues (using 21), 

     

     

     

    Regarding splitting into tabs, 

    providing you place your code into Defines you can run all from 1 tab with no issues, 

    its also good practice to do this so you can categorize or sort into sections like "Main Controls" etc ... this also make editing/modifying later on mush easier :)

     

     

     

    CJ

     I replied to your previous comment but edited with additional info.

    • Like 1
  6. I see in the example you provided you are changing User agent, how often is it doing this ?

     

    also are you executing this in a single or multi-thread environment ? 

     

    Which browser version do you have selected in the "Tools/Options" menu ?

     

    I haven't even gotten to the point where it does it more than once because it locks up on the first go.  It's also single-threaded.  I'm using browser 21.  I have tried it in a `shared browser`, a `new browser`, and just regularly in a define or outside a define.

     

    I also reduced my code by splitting into tabs.  23 lines of code and it still locks up when using `set user agent` within `in shared browser` or `in new browser` or inside/outside define.

     

    Man, this one is a weird one.

  7. Hi JohnnyFive,

     

    Are you working within 1 or multiple tabs in Ubot ?

    does it react like this even with a small amount of code/nodes or just when it starts to get large ?

     

    Ive got a power house of a PC which NEVER laggs, .. and I get the laggy thing once a project reaches a certain size in Ubot, 

    the only way it is bearable is if i split the code into tabs or remove a ton code to external files, ...

    but if its happening to you even with a small amount of code then perhaps there is an outlying issue, 

     

    How much RAM do you have ?

     

     

     

     

     

     

    Cheers

    CJ

     

    I have 8GB of RAM.  The script I'm dealing with is around 280 lines long in 1 tab.  I have noticed some tabs in other bots get clunky when there is lots of code in there, but this seems like it's having issues running the compiled bots as well.  Does the code amount in a tab effect compiled bots as well?  This 280 line script is causing crashes when I'm running a command to set a random user agent.  It's not complex stuff:

    define Set Random User Agent {
        clear list(%User Agents)
        add list to list(%User Agents,$list from file("{$special folder("Application")}\\dat\\user_agents.txt"),"Delete","Local")
        set(#agent,$random list item(%User Agents),"Global")
        set user agent(#agent)
    }
    

    I'll experiment with splitting the code into new tabs to see if that helps. 

     

    I appreciate your help!

  8. Just curious if someone found a method to play/use Games in Flash Player

     

    currently im am tryind to make an Bot for Forge Of Empire

    Ive tried different useragent and ExBroser, without any results

     

    There is a method to  Play/use Online Browser Games in Flash Player

    or i just waste my time?

     

    I have done a few actually.  You have to do tons of image recognition.  Let's say you have button "A" that opens a menu with more buttons.  

     

    First, check to see if button "A"  exists based on the image of it, and if so, click it.  Then loop until a unique image in that sub-menu exists on the page. It usually looks like loop while->not->exists->image->logic->wait.  Rinse and repeat.

     

    It only gets difficult when there is an animated image you have to detect, and then you just have to get the timing down.  But it is possible depending on the animation.  Also, you don't necessarily have to grab a full image of the element you want to click, so if there is an non-animated portion of the image, you can use it instead.  Play around and see what you can get away with when trying to click animated flash elements.

     

    If you run into the same image, and all are clickable elements in the game, find a way to select the one you want based on image information around that particular image.  So select more than you would around the element to capture anything that makes it unique.  Just make the thing you want to click in the middle of the image capture.

     

    Just remember to add wait times when looping so it isn't super processor intensive.  Like, if there is a loading screen after you hit a button, maybe wait 5 seconds between checks instead of 1 second.

     

    But I made a pretty complex bot using these methods and it played through missions to grind resources / XP on some free to play RPG with micro-transactions.  It would play the same missions over and over again and worked flawlessly.

    • Like 1
  9. This thread isn't to complain, I'm just outlining what I have experienced so far so that I might be able to figure out what I can do to fix the problems I'm having.

     

    According to the FAQ page here is what you need to run UBot Studio:

     

     

    To run UBot Studio, you need Windows (Windows Vista, 7 or 8), at least 2 GB of Ram, 5 GB of disk space, and the .NET Framework 4.0 and .NET 4.5 for UBot 5.5.

    If you use a Mac or Linux system, you can use UBot Studio on them by installing a Windows Virtual Machine on those systems. And yes, your copy of UBot Studio or its compiled bots can run on a Windows Server or VPS. We have a great blog post about your options!

     

    However, I do not see anything about CPU power.  I have a 2.90Ghz i7 MacBook running windows and my it struggles to run UBot Studio after about an hour or two of development / running a bot.  This is on a dual-boot installation of windows, so there is no vm.

     

    When I run the same bots on my main computer which is a 3.4Ghz i7 and a GTX 970 for graphics, it makes a huge difference.  I don't know what is causing UBot Studio to be so buggy and whatnot on my MacBook, but it's getting to the point where I can't really do much in UBot on my MacBook(my dev machine) because doing something as simple as `set user agent` locks up my bot and causes UBot Studio to crash sometimes(like 25% of the time which is way too high).

     

    What system specs do you guys have/recommend, and do you find yourself having to restart UBot Studio a lot?

     

    I need to make sure I buy a computer that will be capable of running this stuff without as many issues or my boss will not be happy with me.

  10. I tried

     

    Do you need javascript enabled for the task you are creating ?

     

    If its only the javascript alert killing you and you dont need to do anything "javascript" related then you can disable javascript for the duration of the process, 

    wouldnt that stop it popping up ?

     

    Im not entirely sure, but it sounds good in theory lol

     

     

     

     

    CJ

     

    I tried disabling Javascript and the alert() was still popping.  Somehow I got it to stop popping, but that was after re-enabling javascript.  It's a weird one, but I chalk it up to the site I'm working on.

    • Like 1
  11. Everybody is so serious around here, so let's have some fun :P

     

    The bot does the following:

    • Clicks the big cookie.
    • Purchases upgrades and whatnot.
    • Option for clicking the golden cookie when it pops up ( Slower on less powerful computers ) .
    • Option for auto-saving the progress to a local file.
    You can set the amount of times the big cookie is clicked before it makes purchases for fine-tuning. You can loop it a set amount of times for testing, then loop indefinitely once you find a sweet spot. You can adjust the parameters while the bot is running and you shouldn't run in to any problems.
     
    The save file is located in the directory that the bot is executed from and is named cookie_clicker_save.txt, and must be loaded manually at the moment.
     
  12. So I read somewhere that ubot should just close javascript alerts, however I am working on a site currently where these javascript alerts will not close automatically...  Not sure if anybody has run into this issue or has any advice on working around it.  Kind of a weird one as I have set it to disallow javascript on load...  It really sucks because if you don't close the alert, nothing will happen on the page.

     

    Any ideas?

  13. Edit:  I had some major stability issues running UBot, and I'm guessing it had to do with the cef_browser_log.  I cleared it and things seem to be running better.  I'll post back here to confirm that this was the solution once I have it running a little bit longer.

  14. How do you do it in ui html? I'm stuck lol

     

    I believe all you would need to do is use css, put your ui elements in a div and then use javascript to hide the div or make it reappear.  I haven't done this in UBot myself, or I would be stating this with more confidence.

     

    With CSS, you can make something visible or invisible depending on the elements id, or class.

     

    http://www.w3schools.com/cssref/pr_class_visibility.asp

     

    Use javascript or jquery to select the elements by class or id, and apply the visibility CSS rule as needed.

  15. I plan to integrate this programs with a web app. Integrating with the API and storing big data.

    Ubot has given me good profits. And its community is great. I will remain here, hopefully they launch multiplatform compiling so we can extend our apps to OS X and Linux.

    I'm very new here(just got UBot today), but I am a long-time linux / mac user. You might be able to get your bots to run on Linux using wine.

     

    I have not tested this(like I said, I just got UBot), but I have been pleasantly surprised with running windows applications using wine in Ubuntu.

×
×
  • Create New...