I need to implement in my autoit bot some changes and i am gonna use pixel search.
What i exactly want is a script that start pressing a buton then compare a pixel if this pixel is grey make script 1 until pixel is not grey , when the pixel became not grey make script 2 till its finished, and when script 2 finish has to go to the compare pixel spot for starting again with script 1 till is not grey to make script 2 ...... and so on indefinitly
ControlSend("Hellgate (x86 DX9)", "", "", "{ENTER}")
Sleep(100)
Send("+7stuck")
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{ENTER}")
Sleep(15000)
_move(90,"s")
Sleep(5)
_move(18,"w")
Sleep(5) ; walking back and fordward cuz sometimes door doesnt detect us well
_move(18,"s")
Sleep(4000)
Send("{ALTDOWN}"); finished running SH doing a reset here
Sleep(500)
MouseClick("left",1039,79,1)
Sleep(500)
MouseClick("left",1039,79,1)
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{ENTER}")
Sleep(10)
MouseClick("left",558,571,1)
Sleep(500)
MouseClick("left",558,571,1)
Sleep(200)
ControlSend("Hellgate (x86 DX9)", "", "", "{ENTER}")
Sleep(100)
MouseClick("left",645,550,1)
Sleep(300)
MouseClick("left",645,550,1)
Sleep(400)
Send("{ALTUP}")
Sleep(350) ; reset done now its gonna start again GOTO START
WEnd
Case $Button2
GUIDelete()
ExitLoop
EndSelect
wend
Now is just doing this:
Quote:
_move(50,"s")
Sleep(200)
_move(50,"w")
Sleep(100)
what i need is if coords x=1241 and Y=16 are yellow color repeat this:
Quote:
_move(50,"s")
Sleep(200)
_move(50,"w")
Sleep(100)
but when coords x=1241 and Y=16 are not yellow color continue running rest of the scrip not just repiting forward backward:
Quote:
Sleep(3000) ; time to enter and load SH
_move(50,"w")
Sleep(5)
_move(40,"a")
ControlSend("Hellgate (x86 DX9)", "", "", "{F2}") ;swapp weapon
Sleep(1350)..... and all lines till the end moment that script will start again testing yellow color cuz its a loop.
Pixel search Bot Problem 01/10/2011 - General Coding - 6 Replies Hallo ich habe hier folgenden Bot gemacht:
Auto it
Global $paused
Global $i
Global $a = 100
Global $Mouse
Global $ii
HotKeySet("{F8}", "_Scannerstart")
Problem bei Pixel search 12/07/2010 - AutoIt - 15 Replies Heey,
habe noch nie etwas mit AutoIt geschreiben...
Hier mein script:
Ich wollte eigentlich nur dass mein Mauszeiger auf 736, 699 klickt, dann die Pixel in dem Bereich sucht und drauf klickt. Daraufhin wieder woanders hin klickt und wieder die Pixel den dem Bereich sucht und wieder drauf klickt.
Pixel Search Click 04/11/2010 - AutoIt - 4 Replies Hi,
I am trying to open up Internet Explorer using Pixel Search,
But i keep getting Error.
Here is my script :
It finds the color then double clicks on it,but it cannot find the color,i hope some one can help me, +k for any one who can
Aoc Bot with Pixel search or how 07/20/2008 - General Gaming Releases - 0 Replies Hi there
sorry for my poor english
I tryed a aoc bot , but i got several problems
the enemys are fare away so i need to walk to them and then hit.
i cannot get the next target cause first the bot need to look for 50m to see is there a enemy
Pixel search 02/23/2008 - Guild Wars - 18 Replies hallihallo
bin immoment dabei einen meiner eigenen bots zu optimieren und wollte ne Pixelsearchfunktion einbauen.
Leider weiß ich nicht genau wie man das macht vorallem mit den farben.
mein ziel:
3 verschiedene punkte im gw fenster(mit: x1;y1;;x2;y2;;x3;y3) sollen geprüft werden ob sie in GRÜN sind.
falls x1;y1 grün ist -> (dollerzeichen)folge = 1
falls x2;y2 grün ist -> (dollerzeichen)folge = 2
falls x3;y3 grün ist -> (dollerzeichen)folge = 3