1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Creating a bot

Discussion in 'General Programming Chat' started by Lukas007, Jan 26, 2015.

  1. Lukas007

    Lukas007 Newbie

    Joined:
    Jan 14, 2014
    Messages:
    31
    Likes Received:
    2
    Hey guys.I made a script which i use for addmefast (imacro+firefox).It runs well, but after some time firefox closes automatically and i don't know what can i do more.I spent days and days on creating the script.Now i want to make something else, a bot.Can you put in the comments a videos or anything that can help me create a bot which can open a webpage, type and clicks.

    PS. I would like if that bot could run by itself, so i can work on the same computer in meantime.For example i downloaded winautomatin but when i create a bot with it, i can't use my computer because it control my mouse and open firefox etc.
     
  2. Masterptc

    Masterptc Regular Member

    Joined:
    Aug 9, 2011
    Messages:
    419
    Likes Received:
    604
    Home Page:
    If you want some working addmefast imacros scripts that wont crash, checkout the ones i shared here they are coded in javascript.
    http://www.blackhatworld.com/blackh...ced-addmefast-imacros-scripts-javascript.html

    If you want to create a bot i recommend using imacros since you already have experience but you need to code with javascript because imacros is pretty useless without it. Unfortunately you will need to learn a programming language if you want to create a custom bot, if your willing to put in the effort i recommend learning javascript and once you learn it you can use it with imacros and create some awesome stuff.
     
    • Thanks Thanks x 2
  3. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,489
    Likes Received:
    11,190
    Occupation:
    CHEAP
    Location:
    DATASETS
    Home Page:
    Search for "web robot in python" or your favorite language.
     
    • Thanks Thanks x 1
  4. Lukas007

    Lukas007 Newbie

    Joined:
    Jan 14, 2014
    Messages:
    31
    Likes Received:
    2
    My imacros are already coded in javascript, and yes i would like to learn javascript.Do you know it and if you do, could you post some videos or anything that could help me?
     
  5. BeanDH92

    BeanDH92 Regular Member

    Joined:
    Nov 24, 2013
    Messages:
    302
    Likes Received:
    36
    Occupation:
    Web developer
    can you give some more details about imacros issues you have been facing. i have some experienced with it. glad if i could help
     
  6. Lukas007

    Lukas007 Newbie

    Joined:
    Jan 14, 2014
    Messages:
    31
    Likes Received:
    2
    Well i don't have any problems with imacros.I created a javascript and i open it with imacros and it works excellent for more than 30 mins, sometimes more sometimes less.But my problem is that after some time firefox crashes with no error as result, so that's why i wanted to create a bot.
     
  7. Masterptc

    Masterptc Regular Member

    Joined:
    Aug 9, 2011
    Messages:
    419
    Likes Received:
    604
    Home Page:
    How were you able to create the script in javascript if you dont know javascript? Did you use a program to generate the code?
    To answer your question i learned javascript by watching youtube videos, and taking online courses. tutsplus, codecademy, etc...
     
  8. Lukas007

    Lukas007 Newbie

    Joined:
    Jan 14, 2014
    Messages:
    31
    Likes Received:
    2
    Well i downloaded the existing javascrips and modified them to my needs.The thing is i created a javascript that is good and imacro works with it well. But after running it for some time firefox crashes with no error.
     
    Last edited: Jan 26, 2015
  9. Lukas007

    Lukas007 Newbie

    Joined:
    Jan 14, 2014
    Messages:
    31
    Likes Received:
    2
    I see that there is no more answers on this thread, so i decided to ask you if you could help me to create a batch file which will:
    1) run firefox
    2) login in addmefast and other sites (fb,instagram,ask)
    3) open javascript
    4) make the firefox automatically close after 25mins and run it again from step 1.
     
  10. labs8vivek

    labs8vivek BANNED BANNED

    Joined:
    Oct 16, 2012
    Messages:
    166
    Likes Received:
    22
    You must be placed a TAB CLOSE for tab 2 so when a error occured in tab 1 and it wont swicth to tab2 TAB CLOSE closed current tab which is only active tab hence firefox closes down..the solution is switch to tab 1 after liking and use TAB CLOSEALLOTHERS
     
    Last edited: Jan 26, 2015
  11. Scorpion Ghost

    Scorpion Ghost Senior Member

    Joined:
    Mar 22, 2013
    Messages:
    1,073
    Likes Received:
    250
    Occupation:
    Internet!
    Location:
    On the Interwebz
    Home Page:
    This...

    And also use the "var! errorignore" command at the beginning of your scripts so that if the scripts runs into any issues it will skip the error step and keep running, instead of crushing.
     
    • Thanks Thanks x 1
  12. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    12,489
    Likes Received:
    11,190
    Occupation:
    CHEAP
    Location:
    DATASETS
    Home Page:
    Download node.js

    It runs your javascripts from the command line.
     
    • Thanks Thanks x 1
  13. Avid Learner

    Avid Learner Regular Member

    Joined:
    Oct 28, 2014
    Messages:
    315
    Likes Received:
    105
    Occupation:
    BHW Apprentice
    Location:
    In the BHW Jungle
    I think FF has a problem with releasing memory.

    I haven't run scripts, but having multiple tabs open simultaneously, or open, process, close across several web pages in succession, all manually, and FF will crash or freeze. This is especially true if you have a lot of add ons installed - if so, you might try a stripped down profile for running your script.

    Open up Task Manager and watch to see if a huge amount of memory is taken by FF process, or check out the performance tab and see if memory gets up around 75% of what you have installed. Won't fix your problem, but will confirm if this is the likely issue.
     
  14. Lukas007

    Lukas007 Newbie

    Joined:
    Jan 14, 2014
    Messages:
    31
    Likes Received:
    2
    I already done both of that. I said before that my problem is not in the imacros.But could anyone help me to make that batch file i was talking about earlier?