Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Programming for Beginners This section is for those just beginning in the programming world.
You are Unregistered, please register to gain Full access.
Hi i have find a aimbot for bf2 in AHK script. But it is aiming in the air and not on the enemy when i press the Lalt button
Because i im not know whit AHK script.Maby can someone me help whit this
#NoEnv
#SingleInstance force
#InstallKeybdHook
#InstallMouseHook
#Persistent
return
Tbh aimbots can't be done in ahk... and you can't just copypaste some random script and wait it to aim enemies...
Most likely it's just searching for a color to aim at but in game it'd be impossible to define a proper color ranges for it.
__________________ Cal Hockley: Where are you going? To him? To be a whore to a gutter rat? Rose: I'd rather be his whore than your wife.
----------------------------------------------------- Georg Henrik von Wright: If one is satisfied with things, one doesn't complain about the downsides that exist, either.
Quote:
Winslow: Hanoi, your 'english' is not understandable
Quote:
AdilAA: not sure if i should release my incomplete BF P4F Hack with non-working toggles
Roverturbo: Hanoi22 is just a bitch, and it's hard to please bitches unless you let them get their own way.
Style by lowHertz.
Scanning for colours in a proper language takes an enormous amount of time as it is already. A Macro simply put, couldn't keep up.
The enemy would also always have to be in your line of sight.
__________________
"Those who seek revenge must dig two graves, one for his enemy and another for himself."
On the internet I will - in no shape or form - take personal offence to peoples comments, idea's or views, I assume the people who I reply to won't either.
for starters ahk aimbots are real.. not effective at all but real
@ your code.
most games dont use clicking on parts of the screen(this is what your codes doing), you move the mouse to change the camera matrix.
realistically if you were to use external image searching, you would want:
1) a neural net to find the head of your enemy within the current frame, it would be much more accurate than a direct picture comparison, as the chances of finding that exact picture on the screen are tiny in a 3d game
2) the ability to measure the distance from the identified 'head' to the cursor (fairly simple)
3) the ability to rotate the mouse at a given speed within the game (also fairly simple)
4) you then stop the mouse when it is over the head and pull the trigger. you cant just use the first head tracking point though, because enemies move a lot, you would need to update the target point just before fireing
The source you provided is for a pixel aimbot.. Although they are generally frowned upon by real coders they are in a sense somewhat useful. Start by getting the color value(usually RGB) and edit the script to match your aim color (ie. head color) use a image editing program like PS to obtain the correct rgb or hex color code..
@Joshdajosh must i copy the code? And where putt this one
Sorry but i am total not know whit AHK script
[Auto Merged - 2:50:19 Europe/Moscow]
Quote:
Originally Posted by scrapdizle
The source you provided is for a pixel aimbot.. Although they are generally frowned upon by real coders they are in a sense somewhat useful. Start by getting the color value(usually RGB) and edit the script to match your aim color (ie. head color) use a image editing program like PS to obtain the correct rgb or hex color code..
@scrapdizle how find the coler value
and program PS whats is that where can i find that
I just posted a tiny code for an external screen image search that i just did as proof of concept (it will work with some work) :S
There is no point in making aimbots in ahk. But if you want to learn ahk the best place is their website. Hows about we start off a little smaller and try some macro's? or key bindings?
Oke thanks for the answer.but there is noway making aimbot whit ahk?
You are making a pixel aimbot. It is an aim assistance none the less. So yes, you can make an aimbot in AHK language.
__________________
"Those who seek revenge must dig two graves, one for his enemy and another for himself."
On the internet I will - in no shape or form - take personal offence to peoples comments, idea's or views, I assume the people who I reply to won't either.
OutputVarX/Y The names of the variables in which to store the X and Y coordinates of the first pixel that matches ColorID (if no match is found, the variables are made blank). Coordinates are relative to the active window unless CoordMode was used to change that.
Either or both of these parameters may be left blank, in which case ErrorLevel (see below) can be used to determine whether a match was found.
X1, Y1 The X and Y coordinates of the upper left corner of the rectangle to search, which can be expressions. Coordinates are relative to the active window unless CoordMode was used to change that. X2, Y2 The X and Y coordinates of the lower right corner of the rectangle to search, which can be expressions. Coordinates are relative to the active window unless CoordMode was used to change that. ColorID The decimal or hexadecimal color ID to search for, in Blue-Green-Red (BGR) format, which can be an expression. Color IDs can be determined using Window Spy (accessible from the tray menu) or via PixelGetColor. For example: 0x9d6346 Variation A number between 0 and 255 (inclusive) to indicate the allowed number of shades of variation in either direction for the intensity of the red, green, and blue components of the color (can be an expression). This parameter is helpful if the color sought is not always exactly the same shade. If you specify 255 shades of variation, all colors will match. The default is 0 shades. Fast|RGB This parameter may contain the word Fast, RGB, or both (if both are present, separate them with a space; that is, Fast RGB). Fast: Uses a faster searching method that in most cases dramatically reduces the amount of CPU time used by the search. Although color depths as low as 8-bit (256-color) are supported, the fast mode performs much better in 24-bit or 32-bit color. If the screen's color depth is 16-bit or lower, the Variation parameter might behave slightly differently in fast mode than it does in slow mode. Finally, the fast mode searches the screen row by row (top down) instead of column by column. Therefore, it might find a different pixel than that of the slow mode if there is more than one matching pixel. RGB: Causes ColorID to be interpreted as an RGB value instead of BGR. In other words, the red and blue components are swapped. ErrorLevel
ErrorLevel is set to 0 if the color was found in the specified region, 1 if it was not found, or 2 if there was a problem that prevented the command from conducting the search. Remarks
The region to be searched must be visible; in other words, it is not possible to search a region of a window hidden behind another window. By contrast, pixels beneath the mouse cursor can usually be detected. The exception to this is cursors in games, which in most cases will hide any pixels beneath them.
Slow mode only: By default, the search starts at the upper-left pixel of the region and checks all pixels vertically beneath it for a match. If no match is found there, the search continues to the right, column by column, until it finds a matching pixel. The default left-to-right search order can be inverted by swapping X1 and X2 in the parameter list. In other words, if X1 is greater than X2, the search will be conducted from right to left, starting at column X1. Similarly, if Y1 is greater than Y2, each column of pixels to be searched starting at the bottom rather than the top. Finally, if the region to be searched is large and the search is repeated with high frequency, it may consume a lot of CPU time. To alleviate this, keep the size of the area to a minimum.
Now get to work.
Last edited by scrapdizle; 09-08-2010 at 03:55 AM.
But i will this aimbot working you have tested so it will work.
So as i understand must i change the colorID and the variation
and must i fill at the %
Or must i change this one. PixelSearch, Px, Py, %xposm%, %yposm%, %xposb%, %yposb%, 0x152027, 3, Fast.To this one.PixelSearch, OutputVarX, OutputVarY, X1, Y1, X2, Y2, ColorID [, Variation, Fast|RGB
This seems so pointless. While yes you could make a pixel based bot it's going to totally suck especially when done in a script. Your probably better off aiming on your own and a good player is still going to shoot you dead.
Why not learn to code a real one instead. And before you even ask how learn C++ first then come back and search the forums for everything you need to make one.
__________________
I'm like a virus, you can delete me but I am never really gone.
Links die, searching does not. (Fravia : searchlores.org)
Solving problems requires effort not a college degree.
@joshdajosh thanks for the answer.But again this is me far seized
And you no where to look it .I not but i have you help necessary
how get i this to work. Can you let it me see
How i change the crosshaircolor and mycolor
this is the first time to do this so dont me blame