aimbot probleme autoit.

03/17/2016 18:28 CranK WaY#1
Hey ich habe ein kleines problem mit autoit :( ich habe einen ganz simplen pixelaimbot gemacht aber immer wenn er denn pixel findet ziehlt er sofort auf denn boden ... (und nein derselbe pixel ist nicht auf dem boden) bitte um hilfe
es ist natürlich nicht ein 0x00000 pixel nur damit ihn andere nicht benutzen!


Code:
HotKeySet("{F6}","_Exit")
While 1
   $Variable = PixelSearch(0, 0, 1920, 1080, 0x00000)
   If IsArray($Variable) = True Then
	  MouseMove($Variable [0], $Variable [1],1)
	  MouseClick("left")
   EndIf
WEnd

Func _Exit()
EndFunc
danke schonmal im voraus ;)
03/17/2016 18:51 elmarcia#2
Why u search all the window?, if it is a 3d game a lot of pixels will be the same, try to limit your search to a small region, where is most likely to find your enemy or whatever.
Also auto shoot is not so good at all it will lock for a target for ever.
Try:
Code:
#include <Misc.au3>
HotKeySet("{F6}","_Exit")
While 1
   $Variable = PixelSearch(0, 0, 1920, 1080/2, 0x00000);Try with half screen height 
   If IsArray($Variable) and _IsPressed("01") Then ;Left mouse button
	  MouseMove($Variable [0], $Variable [1],1)
	  ;MouseClick("left") don't need
   EndIf
WEnd

Func _Exit()
EndFunc
03/17/2016 19:14 CranK WaY#3
its not working ... now the mosue dont move...