@@DMT-ly9vz in his defense he did say for beginners, i saw bots with over 10k lines in them that were fully automated and could do pretty much anything but i guess it would take more than 2 minutes to show you how to do it ;)
@@thetechsandwichshow9539this bot without variables is useless cuz can be replaced with macro recorder. If you show variables and more advanced functions i would be grateful
Anyone know how to send the key commands to a specific window? Because if you run this code, it will just print the keys on the python code. It will be the active window.
If you want do it with python - you need to use graphic\directx hooks + injection, but for some easier funtionality - always can run open cv lib and have fun a lil bit)
how would i make this affect up to 9 windows of the same game? im trying to make sure the alt accounts in my game dont go afk, but i still want to retain functionality to one of the windows.
hey man im checking the nexus link and it says that 256 is supposed to be left click but it actually means 0. Like when you do presskey 257 it goes back to 1 and presses escape instead. If you can help me find the number for left click I would be very greatfull
that would probably be a little more advanced and you would need a computer vision algorithm to detect targets and then another more advanced algorithm to have it play the right keys
@@thetechsandwichshow9539 you can also use pyautogui.locateonscreen(). If the image is stable and never changes then he can do that. It isn't that hard to do. If the image does change however he will either need to take a lot of retakes to get it perfect.
you could make or find a move mouse function and then use the scancode for left mouse button(click) which is 256 and add a 10-20 ms delay in the script to make it less bot like.
@@cIeetz That's not true. The point of the video is that you can do this in 2 minutes. Which is true, usually you don't include installs in the work time. If it was "make a video in 2 mins" they could just edit the video down to like 5 seconds and show a 100x sped up version... Do you think this video is 2 mins unedited raw footage? lol
@@thetechsandwichshow9539 Many years ago there were private World of Warcraft bots that was clientless or renderless so they were able to run 100 bots on the same pc at the same time. I think that’s what they’re referring to
import pyautogui import time def hold(key, key2): pyautogui.keyDown(key) pyautogui.keyDown(key2) #time.sleep(put the delay here (must be an integer or float)) pyautogui.keyUp("s") hold("w", "s")
Can you make a video on how to apply this to a web-browser game? Let's say a text based mafia game where you do crime by pressing text on a website. How would you go forward with that? Is it hard or easy?
****** from pyautogui import * import pyautoguy import time import keyboard import numpy as np import random import win32api, win32con time.sleep(2) #give 2 seconds to switch to working window ****** use this working template for booting
@@tontonbooc8850 search for jitbit macro recorder. But!!! If you still wish to make a bot using python without using directx hooks - you always can try it with open cv lib)
I know this is a year ago. You will need to learn a lot to do that. You need to learn deep learning, how to make the ai think like a human, etcetera etcetera. It will be a very long project for sure, but it's feasible. You will probably need to learn a few more languages like c++ or c to improve speed.
You can put a time.sleep command when you run the script which will delay it so you have enough time to switch to the game. What you can also do is automatically focus the game before doing anything. That or the game you are trying to play doesn't support digital movements. Just like how valorant doesn't support touchpads.
@@draft_fusion Never met someone who never liked python that is excluding it's speed. It is one of the most easiest, if not the easiest language to learn. For how easy it is, you can actually do so much with it. Python has a lot of libraries, because it is supposed to. Saying "import it and learn nothing from it" is like saying c++, c, java, etcetera are all just "import it and learn nothing from it" if you mean by libraries. If you mean copy and paste then why the hell are you even programming anyways? (If you even are). Plus if you mean the libraries, the libraries are extremely useful and helpful too. You just need to learn the documentation and how to do stuff. If you don't like python and using libraries and just like to stick to the normal language, use something like autohotkey or autoit. They barely use any libraries, complicated programs in those scripting languages barely even use more than 3 libraries. It's not like you need to learn another language just because you are going to import a library to your code. it doesn't make sense
@@draft_fusion I don't know what you are trying to say, but if you mean like python libraries, you probably never even tried learning it before, programming in it, or straight up just quitting when you heard what the fuck dictionaries are. If you did program in it then it's not the language for what you want to do ig.
I mean, bots are designed to do something, and this bot is told to press keys in keyboard. That's literally all there is in game bots. You can make the bots do more if you are pretty good in programming, but bots are just there to do something that their programmers told them to do.
watched this on 2x and it was so worth it
This is not how to make a bot, this is how to install an already made bot
When I do it, it clicks the keys I want it to, but only when I am on PyCharm, so it does not work for other apps. Know why this is?
In short, copy paste.
yep
@@sdasclk1861 not if you write it 🤣
@@sdasclk1861 sounds like you ctrl+C ctrl+V your essays
But who copied the original code 😮😮@@sdasclk1861
pasting, the quick way to cheat and the quickest way to buy the game again. all within 60 minutes.
Looks more like a macro than a real bot. But that's a cool tutorial, Ty!
Right, but still with bot capabilities since keyboard macros can't process or have if conditions.
@@ahmedel-sharkawi4703 jitbit can have if statements and much more if else, if pixel
@@DMT-ly9vz in his defense he did say for beginners, i saw bots with over 10k lines in them that were fully automated and could do pretty much anything but i guess it would take more than 2 minutes to show you how to do it ;)
@@MrKopxD where can i find that bots ?
Lord mobile game के लिए bot कैसे बनाएं
It's not a bot. It's a script that doing automated stuff. Bot is working EVEN when "window" is hidden
The definition of bot is "an autonomous program on the internet or another network that can interact with systems or users"
And, if you want make for mmorpg like "metin2", how you make it?
Hi man , Can I ask you question ? Where exatly shoud I put the bot folder ?
any folder
You are going very fast
@@thetechsandwichshow9539this bot without variables is useless cuz can be replaced with macro recorder. If you show variables and more advanced functions i would be grateful
Super useful, honestly i couldn't find a better video. the creator of this video is a video legend.
bruh
ok india
@@TrixieMatteIwhat do you mean by that?
Anyone know how to send the key commands to a specific window? Because if you run this code, it will just print the keys on the python code. It will be the active window.
My keyboard scancodes are working fine, but mouse commands / inputs will not work. Any idea?
I wish I could make a bot that was reactive to what’s happening in game, like it was playing itself
Thank you so so much brooo . This video opened a whole new world for me . ❤❤
My pleasure 😊
I will eventually do this to test my knowlage in coding thanks for the intresting idea and helpful code fine sir.
you're welcome
so how i can open the game with like 5 diffrent accounts on the same pc at the same time
idk why but right arrow(number 205) is not working, any idea?
if it throws an error look at the microsoft docks there should be something there
hi, can i do this a shooter game bot, which automatically shoots and hits? for roblox
The thing about that is that its aimbot and you would have to search up how to do that but its bannable
If you want do it with python - you need to use graphic\directx hooks + injection, but for some easier funtionality - always can run open cv lib and have fun a lil bit)
how would i make this affect up to 9 windows of the same game? im trying to make sure the alt accounts in my game dont go afk, but i still want to retain functionality to one of the windows.
How can i make a bot for leveling up in league of legends?
How can i run this only on game while i browse web, i want to watch a movie or scroll internet while code do its stuff
I think you have to creat a sub pc to do that
how can i import game data in a certain frame?
Like, i want to import the positions of some objects, how can i do it?
why in the universe you would need a full-featured ide to write this and why did you use python in the first place if ahk already existed at that time
hey man im checking the nexus link and it says that 256 is supposed to be left click but it actually means 0. Like when you do presskey 257 it goes back to 1 and presses escape instead. If you can help me find the number for left click I would be very greatfull
Can it be applied to a console? PlayStation for example?
I'm really not sure but probably not since python doesn't run on playstation though C++ does and you can try it somehow through that
@@thetechsandwichshow9539 am still here after 10 months, Waiting for confirmation 🙂.
@@fozzes yeah thats possible but not with python
@@bosballl how?🤔
@@fozzes You might need to get a developer sdk from sony first, I never tried it before myself so I can't tell you how.
But my question is, can you program it to complete heists?
can you tell me please what command is to select random target?
that would probably be a little more advanced and you would need a computer vision algorithm to detect targets and then another more advanced algorithm to have it play the right keys
@@thetechsandwichshow9539 you could of just used keyboard module and pyautogui.
@@thetechsandwichshow9539 you can also use pyautogui.locateonscreen(). If the image is stable and never changes then he can do that. It isn't that hard to do. If the image does change however he will either need to take a lot of retakes to get it perfect.
What is the command if I want to press a button that is displayed in the game (with my mouse) and not on keys of the teastatur
you could make or find a move mouse function and then use the scancode for left mouse button(click) which is 256 and add a 10-20 ms delay in the script to make it less bot like.
very useful, but it took me over an hour to setup everything 2 minute must be for those with supernet.
he made the vid in 2 minutes he never said you could do it in 2 -_-
@@cIeetz That's not true. The point of the video is that you can do this in 2 minutes.
Which is true, usually you don't include installs in the work time.
If it was "make a video in 2 mins" they could just edit the video down to like 5 seconds and show a 100x sped up version...
Do you think this video is 2 mins unedited raw footage? lol
How you make a game bot into a client so you can run multiple all at once?
hmm
it would probably need a different approach
i am also looking for a tutorial on how to do this
Don't you dare use that for tf2
@@thetechsandwichshow9539 Many years ago there were private World of Warcraft bots that was clientless or renderless so they were able to run 100 bots on the same pc at the same time. I think that’s what they’re referring to
its just a macro, i guess this would help someone but what i expected was sending packets without loading a game client
Video starts at 00:41 thank me next year
its been a year and i came here to thank u
thank you, it's been a year
thank you
sorry im late but thank you
is uthere a way to press multiple keys at a time like it presses and hold w and s key at the same time and releases them at the same time?
import pyautogui
import time
def hold(key, key2):
pyautogui.keyDown(key)
pyautogui.keyDown(key2)
#time.sleep(put the delay here (must be an integer or float))
pyautogui.keyUp("s")
hold("w", "s")
Can you make a video on how to apply this to a web-browser game? Let's say a text based mafia game where you do crime by pressing text on a website. How would you go forward with that? Is it hard or easy?
I'd probably use selenium or smth like that
mafiaway bozo 🤣
fatherless behavior
Too far screen view cant see clearly where to copy and what to copy.
import ctypes
import time
SendInput = ctypes.windll.user32.SendInput
# C struct redefinitions
PUL = ctypes.POINTER(ctypes.c_ulong)
class KeyBdInput(ctypes.Structure):
_fields_ = [("wVk", ctypes.c_ushort),
("wScan", ctypes.c_ushort),
("dwFlags", ctypes.c_ulong),
("time", ctypes.c_ulong),
("dwExtraInfo", PUL)]
class HardwareInput(ctypes.Structure):
_fields_ = [("uMsg", ctypes.c_ulong),
("wParamL", ctypes.c_short),
("wParamH", ctypes.c_ushort)]
class MouseInput(ctypes.Structure):
_fields_ = [("dx", ctypes.c_long),
("dy", ctypes.c_long),
("mouseData", ctypes.c_ulong),
("dwFlags", ctypes.c_ulong),
("time",ctypes.c_ulong),
("dwExtraInfo", PUL)]
class Input_I(ctypes.Union):
_fields_ = [("ki", KeyBdInput),
("mi", MouseInput),
("hi", HardwareInput)]
class Input(ctypes.Structure):
_fields_ = [("type", ctypes.c_ulong),
("ii", Input_I)]
# Actuals Functions
def PressKey(hexKeyCode):
extra = ctypes.c_ulong(0)
ii_ = Input_I()
ii_.ki = KeyBdInput( 0, hexKeyCode, 0x0008, 0, ctypes.pointer(extra) )
x = Input( ctypes.c_ulong(1), ii_ )
ctypes.windll.user32.SendInput(1, ctypes.pointer(x), ctypes.sizeof(x))
def ReleaseKey(hexKeyCode):
extra = ctypes.c_ulong(0)
ii_ = Input_I()
ii_.ki = KeyBdInput( 0, hexKeyCode, 0x0008 | 0x0002, 0, ctypes.pointer(extra) )
x = Input( ctypes.c_ulong(1), ii_ )
ctypes.windll.user32.SendInput(1, ctypes.pointer(x), ctypes.sizeof(x))
******
from pyautogui import *
import pyautoguy
import time
import keyboard
import numpy as np
import random
import win32api, win32con
time.sleep(2) #give 2 seconds to switch to working window
******
use this working template for booting
How to create apk with button? Have file 5
How would I set up a trading bot?
For Android??
U have run android game in pc
Would that be possible for an og fortnite private server?
lol, why not use macrorecorder then? its an easier to do.
Whats macrorecorder pls?
@@tontonbooc8850 search for jitbit macro recorder. But!!! If you still wish to make a bot using python without using directx hooks - you always can try it with open cv lib)
Can someone help me use this for pcsx2? So i can plug into player 2 for some fighting games.
how to send click to a non active window?
there should be a specific key code for mouse clicks as well
is it work in games chrome ioGames ?
yes it will work on chrome games
Well that nice hope someone tutorial a script that make the bot follow a primary player, that would be nice.
Hello, I need to create a bot for the 3 tutorial maps in league of legends, its really simple. I'm hiring whoever can do it, do you think u can help?
yes i can do it
Damn, You are showing this so fast, that I have to pause this video often.
sooo, its tinytask?
Well... take a look at AHK... same thing but much simpler and can do a lot more
HAIYAAAA!
CLOULD'VE USED VS CODE!
"for beginners" *starts programming*
That WAS entry level programming. Just copy paste and a "while" loop. What did you expect ?
Can for game snake?
Is there even a community pycharm
yeah same
But how do I make it good at DBFZ tho
4th link not working
Good day sir could you please make a video using to a specific game like for example browser game without being detected
Would be cool if someone did this for call of duty for local multiplayer
so is this self improving? if not you should implement deep learning into this super helpful
How do I make to press 2 keys at different times and not the same?
to wait write time.sleep(and the ammount of secconds in here)
Dose it auto repeats its self
You can use "while True: " to repeat it.
BRO HELP PLS 😭
0:40
Can your Bot play GTA 5 and complete all missions ?
yes it can if the mission is predictable
I know this is a year ago. You will need to learn a lot to do that. You need to learn deep learning, how to make the ai think like a human, etcetera etcetera. It will be a very long project for sure, but it's feasible. You will probably need to learn a few more languages like c++ or c to improve speed.
make auto clickr for android subsystem for windows 10
and make bot for cartoon wars 3 game
BRO . HOW CAN YOU INSTALL GTA 5
Why not just use a mouse recorder at this point? This is not a real bot
is blud running windows on a mac 🗿
is it possible to get banned?
Singleplayer not, but anything is possible. Online definitely will get you banned.
So it's Autohotkey with more steps.
Can you do a video that shows how to crack bot or make it sourcecode?
What about online games
Lord mobile game ke liye bot Kaise banaen plz reply
It is work for pugb mobile, free fire, 😇😅😂
I mean you can run a emulation for mobile games and try it that way
Now try to make it copy mouse movements in FiveM haha can’t do it huh
Could you make it work in LOL ?
only with deep learning
can i make that in roblox?
and the point of this is what exactly?
Twhank you swo wmuch!!!! I lwaunched this cwode in VS code anwd now it's rwunning forewver!!! Thank wyou!wwwww
how do you relate the script to a game??
How is that a Bot? That is just a macro not a bot
For vr game
Bro can we hack dice games
yeah this shit does not work, all it does is run the damn script and thats it, game is untouched
You can put a time.sleep command when you run the script which will delay it so you have enough time to switch to the game. What you can also do is automatically focus the game before doing anything. That or the game you are trying to play doesn't support digital movements. Just like how valorant doesn't support touchpads.
anyone trying to bot the game banana too? I need help
Fun fact. The video was fully AI generated. Jks. Great job.
Is this bannable
Depends where u use it.
that isn't an AI that's a macro!!
Bro my head is confused
dude go use pyautogui instead bruh
the title should be how to install a bot not make one
But how to detect game windows or game name this code ?
it will just work on the window that you have open it works like a keyboard
not real
Wdym if something doesn’t work open up an issue on github
alright mr no videos, nothing in your profile, weird profile pic
literally just a macro
nice, thanks
Bro what the actual
im in 2024
ok
are you want job?
are do want job
Darn it, of course it python :( I never liked that language
blud its the easiest
@@oyaoya4024 I don't like the solutions to just be "import it and learn nothing from it"
@@draft_fusion Never met someone who never liked python that is excluding it's speed. It is one of the most easiest, if not the easiest language to learn. For how easy it is, you can actually do so much with it. Python has a lot of libraries, because it is supposed to. Saying "import it and learn nothing from it" is like saying c++, c, java, etcetera are all just "import it and learn nothing from it" if you mean by libraries. If you mean copy and paste then why the hell are you even programming anyways? (If you even are). Plus if you mean the libraries, the libraries are extremely useful and helpful too. You just need to learn the documentation and how to do stuff. If you don't like python and using libraries and just like to stick to the normal language, use something like autohotkey or autoit. They barely use any libraries, complicated programs in those scripting languages barely even use more than 3 libraries. It's not like you need to learn another language just because you are going to import a library to your code. it doesn't make sense
@@draft_fusion I don't know what you are trying to say, but if you mean like python libraries, you probably never even tried learning it before, programming in it, or straight up just quitting when you heard what the fuck dictionaries are. If you did program in it then it's not the language for what you want to do ig.
bro can you give me a cheat for valorant in China ?I will give u money
is that was a BOT or the keyboard simulator?? DISLIKED!
?
I mean, bots are designed to do something, and this bot is told to press keys in keyboard. That's literally all there is in game bots. You can make the bots do more if you are pretty good in programming, but bots are just there to do something that their programmers told them to do.
You make a better video then HASEEB
garbage
how can i contact you ?