Adblock breaks this site

How can i improve my mouseclick bot

Discussion in 'Programming General' started by businessman1, Jan 2, 2016.

  1. businessman1

    businessman1 Newcomer

    Joined:
    Jan 2, 2016
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    0
    How can i improve my mouseclick bot

    Currently i have quite an okay mouseclick bot for a game, Growtopia using autohotkey.

    What i have is this:

    Loop, xx
    Run game
    Connect to game
    Clear News
    Click World Name Box
    Clear Past World Name
    Type World Location
    Enter World
    Press down the right-arrow key, Go to LoopEntry
    Enter Loop Entry Door
    Place items, break items
    Press down the up-arrow key.
    Click Seed
    Press down the right-arrow key
    Plant seed
    Press down the up-arrow key.
    Press down the Left-arrow key, Go to 1st Platform Door
    Click First Platform Door
    OpenExit World Menu
    Click exit World
    If ProcessExist "game.exe"
    Process, Close, game.exe
    return

    The mouseclicks are spaced out by sleep intervals. Eg Sleep, 5000.
    One problem i have with this mouseclick bot is when there are internet problems, the mouseclicks would go out of sync, and the bot would go haywire.
    The process of restarting the game helps to fix the out of sync mouseclicks to a certain extent.

    This bot has earned me a sum of dollars, what i am wondering now is how can i improve it ?? I am interested in finding one of the programmers on this site to write a bot perhaps but i dont know what is possible.

    Would it be possible to convert the above to a much more durable bot , perhaps a memory read bot which can run for 24 hours non stop?

    Thank you for your time
     
  2. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    How can i improve my mouseclick bot

    You'd have to make it more complex. I'm not familiar with the game, but you could make a bot to use colours and bitmaps to find an object and click it as opposed to just arbitrarily clicking every 5000 msec. Making anything beyond that is overkill.
     
  3. DanielRS

    DanielRS Newcomer
    Banned

    Joined:
    Jan 11, 2016
    Posts:
    23
    Referrals:
    0
    Sythe Gold:
    0
    How can i improve my mouseclick bot

    What type of game is it?
     
  4. businessman1

    businessman1 Newcomer

    Joined:
    Jan 2, 2016
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    0
    How can i improve my mouseclick bot

    Thanks for the help bluepig. I havent heard of bitmaps before :D
     
  5. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant
    How can i improve my mouseclick bot

    It's basically an image or a still from the game. Take Runescape for instance - if you wanted to make a bot that identified all the herbs in your inventory, you could make it so that it has storage of the herb item picture and all the bot does is searches an area on the screen for those bitmaps and performs an action when they're found. You'd have to look into doing this in a real programming language though. On the bright side it's not extremely complex.
     
  6. Darkest Dream

    Darkest Dream I prefer to have my nightmares with open eyes.
    Darkest Dream Donor

    Joined:
    Jun 26, 2013
    Posts:
    7,457
    Referrals:
    1
    Sythe Gold:
    544
    Vouch Thread:
    Click Here
    Discord Unique ID:
    624783392625524785
    Sythe RSPS Player Two Factor Authentication User In Memory of Jon Christmas 2015 Doge Halloween 2013 Sythe's 10th Anniversary Off Topic Participant Gohan has AIDS
    Heidy Lawrence
    How can i improve my mouseclick bot

    PM me what you're making off of this.

    I could potentially work with you.
     
  7. Minted

    Minted Member

    Joined:
    Dec 1, 2017
    Posts:
    70
    Referrals:
    0
    Sythe Gold:
    22
    How can i improve my mouseclick bot

    In RuneScape, when the internet stutters for a second, a "loading" rectangle appears in the top-left, or perhaps it just freezes momentarily. As Bluepig pointed out, implementations relating to bitmap could be useful, especially in determining whether or not your internet is flowing smoothly.

    If a "loading" dialogue or something does appear, Then
    the timer used to move your mouse, or send input to the x,y coordinates will stop, until the referenced bitmap is no longer visible (indicating normal internet again).

    Just a thought ;)
    - Minted
     
    Last edited: Dec 1, 2017
< Hacker. | need help something easy i think >


 
 
Adblock breaks this site