AUTOIT - script using pixel search doesnt work properly
I have posted again triying to explain better wich is my problem. My level of english is very low and a friend is helping me to express my problem i got whith the script.
Is the secon time i post the same please apologize me , and delete old post because here everyone will understand better what i am asking , and what i need.
I have done a bot that must be running all time.
It has 2 diferents parts.
Part 1 must do :
PHP Code:
_move(50,"s") Sleep(200) _move(50,"w") Sleep(100)
it has to repeat this part while pixel in position coords x=1241 and Y=16 is yellow color , repeat forever until pixel change.
When thes pixel is not yellow then it has to do this diferent script:
PHP Code:
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 some more lines i am not gonna copy .....
And when has finished running this second part i want script to start again in part 1 verifiying if pixel is yellow to repeat first part or second depending of color of pixel. running forever (i mean when second part finish must go to test pixel again to determine if must run first or second part ).
Now i post all script complete i have maden , cuz somethis it must be bad coded cuz the script its always repiting part1 even if pixel in corrds is not yellow.
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
If i run the script without pixel search it works perfect , all code its ok except pixel seach but i would prefer to test color pixel for not loose runs with the char in a place he has not to be, testing the pixel i ensure he is in right place and i dont loose a complete cycle (imput lag, death of char makes the char to be in bad place and start running part 2 and u loose a complete cycle, thats because i want to run part 1 til be sure pixel is not yellow cuz this means char is in good place)
Another problem it has the script is the second button or f11 terminate function. Both of them are not working and i just can get out form script from taskmanager. It would be nice to have a break script code better than mine.
Any suggest it will be apreciated. And Sorry for my low level of english.
AutoIt Pixel Search & Click Frage. 11/23/2010 - AutoIt - 12 Replies Hey e*pvpers.
Bin grade angefangen, mich bisschen in AutoIt reinzuarbeiten.
Wollte dazu nen kleinen, recht simplen Bot erstellen, der eine bestimmte Pixelfarbe sucht - Wenn er das gefunden hat, sollte er eig draufklicken.
Bin allerdings nur so weit gekommen, dass der Pixel gefunden wird, und ein Klick auch gemacht wird. Allerdings klickt die Maus da wo der Cursor grade steht, und movt nicht zu dem jeweiligen Pixel.
Und da ich wie gesagt grad erst anfange, weiss ich den Befehl...
Problem mit Pixel search Autoit 06/18/2010 - AutoIt - 14 Replies Wie der Titel schon sagt habe ich ein Problem mit der funktion Pixel search
Mein Problem ist das die Maus immer über die Rausgesuchte Pixel Position geht
zb O ist der ausgewählte punkt es kommt aber eher sowas raus als ob ich Ö striche ausgewählt hab
Also aimt immer etwas über der angegebennen position der Code :
und dann hätte ich noch die frage ob man mehrere Pixel Searches in einem Script laufen lassen kann
Zb: Wenn die Lebensanzeige sinkt oder Fast lehr ist das eine Function...
Cant make this autoit script to work 08/15/2009 - Dragonica Hacks, Bots, Cheats & Exploits - 4 Replies Anyone can tell me why this doesn't work? My dragonica window will be active, but it just wont spam the x every second. I have tried messing around with the codes but no luck o.O
;HotKey for terminating the script
#include <file.au3>
Dim $aRecords
;Window title for dragonica should be changed after every patch
$WinTitle = "Dragonica (Client Ver : 0.908.1301)"