Need some help: botting

Joined
Feb 27, 2019
Messages
15
Reaction score
1
Hello guys I'm new here and I'm looking for someone to help me ;) I hope I'm posting in the right section. So I read alot about botting on this forum and that's why I'm asking this question here.

Currently I'm working on a project to bot a game. I'm doing this with PyAutoGUI. The goal is to run +-20 bots on my computer but there is one problem. I'm using a virtual machine for each bot, because each python script controls the "main" mouse. Currently I'm running 5 bots and that's the maximim I can run if I stick with virtual machines. Any ideas how I can run more bots? My computer can easily run 20 python scripts but the issue is I only have one mouse to control so I'm obligated to use some kind of software.

I saw alot of threads of people using instagram bots, people who run many of them. But each bot controls a mouse right? So how can I achieve that? I really hope anyone can help me out here!
 
I saw alot of threads of people using instagram bots, people who run many of them. But each bot controls a mouse right? So how can I achieve that? I really hope anyone can help me out here!
No, the bots are you talking about doesn't take mouse control
They can be set up on a VPS and let them run all day
 
Do you need control over the mouse? Can you just click the elements using Javascript? This depends on how much human emulation you need. You could write your bot using Selenium if you just need DOM element manipulation.

Yes the PyAutoGUI module always takes the control over the mouse. Here is a piece of the code I'm using it's very click intensive, and sometimes I need to type some things:


Code:
def start():
    # INITIALIZE
    rand_int_time = random.uniform(0.5, 1)
    sleep_time = random.uniform(1, 2)

    pyautogui.moveTo(289, 150, rand_int_time)
    pyautogui.rightClick()
    pyautogui.moveRel(100, None, rand_int_time)

    pyautogui.keyDown("left", 2)
    pyautogui.keyUp("left")
    pyautogui.keyDown("up", 2)
    pyautogui.keyUp("up")

    pick()

def pick():
    rand_int_time = random.uniform(0.5, 1)
    sleep_time = random.uniform(1, 2.1)

    for i in range(30):
        random_x = random.uniform(265, 275)
        random_y = random.uniform(245, 255)
        pyautogui.moveTo(random_x, random_y, rand_int_time)
        pyautogui.click()
        time.sleep(sleep_time)

        try:
            pyautogui.locateOnScreen("bottomline.png", grayscale = True, region =(503,403,14,13))
            pass
        except Exception:
            solve_puzzle()

    alch()

So ur saying that if I use JavaScript I can run as many bots I want on one destktop? I've never programmed java but if that's true I will certainly give that a shot!
 
Yes the PyAutoGUI module always takes the control over the mouse. Here is a piece of the code I'm using it's very click intensive, and sometimes I need to type some things:


Code:
def start():
    # INITIALIZE
    rand_int_time = random.uniform(0.5, 1)
    sleep_time = random.uniform(1, 2)

    pyautogui.moveTo(289, 150, rand_int_time)
    pyautogui.rightClick()
    pyautogui.moveRel(100, None, rand_int_time)

    pyautogui.keyDown("left", 2)
    pyautogui.keyUp("left")
    pyautogui.keyDown("up", 2)
    pyautogui.keyUp("up")

    pick()

def pick():
    rand_int_time = random.uniform(0.5, 1)
    sleep_time = random.uniform(1, 2.1)

    for i in range(30):
        random_x = random.uniform(265, 275)
        random_y = random.uniform(245, 255)
        pyautogui.moveTo(random_x, random_y, rand_int_time)
        pyautogui.click()
        time.sleep(sleep_time)

        try:
            pyautogui.locateOnScreen("bottomline.png", grayscale = True, region =(503,403,14,13))
            pass
        except Exception:
            solve_puzzle()

    alch()

So ur saying that if I use JavaScript I can run as many bots I want on one destktop? I've never programmed java but if that's true I will certainly give that a shot!

This is all stuff you can inject using javascript. Look into selenium for python. It's pretty easy get started and all of your stuff can be easily ported. If the site does cursor tracking, then you'll have to use your current solution.
 
This is all stuff you can inject using javascript. Look into selenium for python. It's pretty easy get started and all of your stuff can be easily ported. If the site does cursor tracking, then you'll have to use your current solution.

I've already heard of Selenium in the past. Isn't it used for websites? I'm playing a game which is launched through a client. I'm trying to add a picture here but because I'm a new user it won't let me
 
Currently I'm working on a project to bot a game. I'm doing this with PyAutoGUI. The goal is to run +-20 bots on my computer but there is one problem. I'm using a virtual machine for each bot, because each python script controls the "main" mouse. Currently I'm running 5 bots and that's the maximim I can run if I stick with virtual machines. Any ideas how I can run more bots? My computer can easily run 20 python scripts but the issue is I only have one mouse to control so I'm obligated to use some kind of software.

You can use containers (docker or LXC). They're much lighter on system resources than full virtual machines.
Though I'm not sure if you can have a graphical interface with a container.
 
You can use containers (docker or LXC). They're much lighter on system resources than full virtual machines.
Though I'm not sure if you can have a graphical interface with a container.

Never heard about Docker, looks very interesting after searching a bit on the net. Will look into that tommorow
 
If everything you're doing is local (meaning the game isn't on a website and doesn't interact with any servers) then gonna have a tough time. Probably only option is to rent a bunch of VPS.
 
I've already heard of Selenium in the past. Isn't it used for websites? I'm playing a game which is launched through a client. I'm trying to add a picture here but because I'm a new user it won't let me
If that's the case, your probably out of luck unless you take it one step further and start reverse engineers the packets/data. You'd basically have to write your own non-UI client if you don't want to use autohotkey/autoit/or other similar type of scripting language....not easy to write a headless bot for games.
 
If that's the case, your probably out of luck unless you take it one step further and start reverse engineers the packets/data. You'd basically have to write your own non-UI client if you don't want to use autohotkey/autoit/or other similar type of scripting language....not easy to write a headless bot for games.

From what I can find on the internet autoit also takes control over mouse and keyboard. If I type "autohotkey running process in the background" in Google I can find alot of questions but there seems to be never a good solution for this problem no matter what script language.

My pyhton script is currently playing on one game client. I'm thinking to expand the amount of game clients and adjust my python script to that. So that I open 4 game client on one virtual machine and let one python script play 4 games at the same time lol. I think that's the easiest way, really weird I can't find a good solution for running a process in the background :(
 
Last edited:
add new user to your VPS and run the bots

My method doesn't make alot of money at the moment just want to make some 500$-1000$ starting cash before I'm investing in anything. But VPS is probably the way to go if I want to run LOTS of bots.
 
My method doesn't make alot of money at the moment just want to make some 500$-1000$ starting cash before I'm investing in anything. But VPS is probably the way to go if I want to run LOTS of bots.

i have here not used vps - i think i can help you out
 
Hey, you are on the right path, it's quite easy to do with Python+Selenium, here are keywords for further research:

"Python Headless Selenium"
"How to move the mouse in Selenium?"

Also read about: 'Selenium ActionChains', "Execute a Javascript function in python with selenium", this will be quite useful too.

PM me if any issues which can't be solved with simple search with these keywords on stackoverflow :=)

Good luck!
 
Back
Top