[TUTORIAL] How to make a BOT

01/31/2010 17:55 ax5#16
Good Work
01/31/2010 19:09 Xereon#17
Quote:
Originally Posted by ax5 View Post
i never used pixel search but :p but i have used image search but image search dosent work on all PC`s. Is pixel search the same like image search ? :mofo:
imagesearch is senseless.

There is already a function in AutoIT which do the same : PixelChecksum()
02/06/2010 16:54 Theri#18
Quote:
Originally Posted by ax5 View Post
i never used pixel search but :p but i have used image search but image search dosent work on all PC`s. Is pixel search the same like image search ? :mofo:
Image search should work on all non-64 bit operating systems.

Quote:
Originally Posted by Xereon View Post
imagesearch is senseless.

There is already a function in AutoIT which do the same : PixelChecksum()
They are not the same thing.
02/07/2010 15:13 Xereon#19
Quote:
Originally Posted by Theri View Post
They are not the same thing.

They are.

1.Generate the sum of the picture you want to check
2.Loop through
3.Done
02/07/2010 16:30 Theri#20
I understand your point and they still are not the same thing, I simply have to assume you've never read the source code for image search from ahk or have used image search yourself.

Pixelchecksum has its uses, want to know if the pixels in an area changed? Great, use it. That's what its for. Looking for a particular picture on screen, and in most of our contexts, in game? Well good luck with that. It takes a decent amount of tolerance when matching images and you want to use a function that returns a strict checksum to determine if your image is on screen. I've not played with the function but even trying to compare the same image to itself with image search it never matches with 0 tolerance. With image search you can define any color to be transparent and ignored in the matching and you're not going to get that with pixelchecksum.

Also, to use the checksum, you're going to what? Screen shot, and cut out the image you want and then get your checksum for the image? Then set a variable in your main script and look for it. Ok, so is this image you're looking for in one place all the time? No? Ok so now you're going to write loops to search the whole screen or areas of the screen? If your image that you got a checksum for can appear any where on screen or in a smaller area you're going to have to start searching in one spot then increment over 1 or 2 pixels at a time, reach the end of the line from left to right and then if needed move back to X origin and down the y axis to continue the process. I'd be willing to wager money that is far more time intensive than just using image search in this context.

I'd be more than happy to see a coded example that proves the built in checksum search would be faster to find an image on screen than image search.
02/07/2010 23:01 s999kyle999#21
nice
02/15/2010 18:00 chazzzle#22
i need a botz to hit z 10 times a second.... Any help?

z
02/15/2010 18:39 NukePROOF#23
Think you could help us Star Trek Players out with a bot?
02/16/2010 14:09 TheForsaken#24
Quote:
Originally Posted by chazzzle View Post
i need a botz to hit z 10 times a second.... Any help?

z
Code:
For $i = 0 to 10 Step +1
    Send("z")
Next
ConsoleWrite("End")
02/16/2010 19:02 ax5#25
:):) Good job :):)
02/17/2010 13:09 Russel00#26
Quote:
Originally Posted by TheForsaken View Post
Code:
For $i = 0 to 10 Step +1
    Send("z")
Next
ConsoleWrite("End")
Well Ive Read Your Guide 3+ Time's & A Few Other Guide's.

Think You Can Help Me With A Script?

I Want It To Use f1 Every 10 Minute's & Right Click Ever 5 Second's.

That Way I Can Look At How You Done It & Hopefully Progress On To Making My Own,

Muchly Appreiciated :)
02/18/2010 20:13 iTim#27
@Russel00
Hey ehm this is possible if you make 2
functions and say that the 2 functions should run
together
^^
02/18/2010 20:16 Xereon#28
Quote:
Originally Posted by Tim-xD View Post
@Russel00
Hey ehm this is possible if you make 2
functions and say that the 2 functions should run
together
^^
the thing you mean is called "multi-threading" and its not supported in the orginal api.
02/18/2010 20:30 iTim#29
Here i made a sample script :
Code:
HotKeySet("a", "function1") ;change to your keys
HotKeySet( "d" , "function2" )

While 1
	Sleep (1)
WEnd
Func function1()
	While 1
		Sleep(600000) ; The 10 minutes
		Send ( "{F1}" )
	WEnd
EndFunc

Func function2()
	While 1
		Sleep (5000)
	MouseClick("right") ; You can add cordinates if you want
	Wend
EndFunc

;sorry for my bad english i'm german ^^
Edit : So it wont work ?
02/18/2010 20:38 Zirno#30
good job!nice tutorial.