[Help]Triggerbot when word/name appears

08/12/2013 21:31 jejebro#1
Hey,

I need help with my AUTO IT script for a trigger bot for the game called Gunz

To explain, i'm using a picture
[Only registered and activated users can see links. Click Here To Register...]

As you can see the name above the x-hair, and I would just like to make it so that with pixel search when it finds words above the x-hair, you shoots (or left click)

Code:
	While True
		Local $coord = PixelSearch(0, 0, 20, 300, 0xFF0000, 10)
		If Not @error Then
			MouseClick("Left") ;It found the color so it does this
			Sleep(30)
		EndIf
	WEnd
What's what I have atm :/ but it sucks Please help :P
08/13/2013 16:41 alpines#2
You are only scanning a single pixel, get some more pixel to have a higher success rate or read out the memory to get the angle of your player/weapon and the position of the enemy which has the highest success rate of working.

Ed!t: If you want to scan where the text is on your screen, you have to take a screenshot, send it to an OCR Software and correct the size of it to get better results, this way will work slower but ok.
08/13/2013 18:56 jejebro#3
What do you mean read out the memory?

I have this atm

Code:
While True
$Variable = PixelSearch(0, 0, 1599, 899, 0x384237)
If IsArray($Variable) = True Then
MouseClick("Left") ;It found the color so it does this
Sleep(30)
 
EndIf
 
WEnd
08/13/2013 20:23 alpines#4
Every process/program/game is running in your RAM. If your character has 100HP that value is stored in your RAM, so you can find that address where it is located in the RAM and then you can find the pointer for that value and then you have a much higher success rate of doing your job.

If you want to know more, try to google "memory hacking autoit".