This is my pixel search code, the problem is that csgo looks at the place when it sees the pixel in the game.
Code:
search := [[954, 557, 17, 15, 0xC3897C], [957, 559, 6, 5, 0x8D898C]] ; x, y, w, h, color for first & second search
Loop {
KeyWait, RButton, D
PixelSearch, x1, y1, search.1.1, search.1.2, search.1.1 + search.1.3 - 1, search.1.2 + search.1.4 - 1
, search.1.5, 10, Fast RGB
If ErrorLevel
Continue
PixelSearch, x2, y2, search.2.1, search.2.2, search.2.1 + search.2.3 - 1, search.2.2 + search.2.4 - 1
, search.2.5, 10, Fast RGB
MouseMove, x1, y1
} Until !ErrorLevel
MouseMove, x1, y1
This code goes to the right destination in in-game pixel search, but sometimes it can go where I don't want it. I can only give the color red in the code below, I want to search for a second color to verify that it is looking like the code above. Or let the code I am submitting looks at the correct korinate in the game.
need help with pixel search and mouse click 09/06/2013 - AutoIt - 4 Replies $enemy1= PixelSearch($hpos, $hpos,$hpos+$hpos,$hpos+$hpos, 0xFF0000)
if IsArray($enemy1) = True then
MouseMove($enemy1,$enemy1,0)
MouseClick("primary",$enemy1,$enemy1, 1,0)
endif
dunno why but it miss click the pixel with about 5 pixels
I need help with pixel search and mouse click. 06/07/2013 - AutoIt - 5 Replies #region HotKeySet
HotKeySet("{F4}","PIXELREAD")
HotKeySet("{F2}","PIXELFIND")
HotKeySet("{f3}","ExitProg")
#ENDREGION
#region variables
dim $pos
dim $color
Global $counter=0
code : Mauszeiger von pixel x zu pixel x bewegen 06/04/2012 - AutoIt - 9 Replies Hey ich hab mich noch nicht wirklich mit Auto it beschäftigt
Ich suche eben einen code der den Mauszeiger von Position x zu position x bewegt .
Und AutiIt hat doch eine Funktion um die position zu ermitteln also der Punkt ist meinetwegen 1773 pixel.
mfg and thx 4 help;)
nicki240