ForsakenGod Posted November 17, 2009 Share Posted November 17, 2009 Please could anyone explain me how to set up pixelsearch propelly ? like how to find the top right etc coords ? I know theres a tool with autoit for finding coords but i dont know which a which so anyone please could guide me trought ? PixelSearch ( left, top, right, bottom, colour [, shade-variation [, step [, hwnd]]] ) Link to comment Share on other sites More sharing options...
Kiroshi Posted November 17, 2009 Share Posted November 17, 2009 (edited) go to the folder of AutoIT and you should see a program, with the name: Au3Info.exe click that -> then there is tab's for click on mouse and you should now see, position: cursor and color, then you can go for summary for extra info, and also there is a finder tool you click-Hold the icon and point ur mouse to an object you want information on. hope that helped, /KiRo Edited November 17, 2009 by Kiroshi Link to comment Share on other sites More sharing options...
JohnOne Posted November 17, 2009 Share Posted November 17, 2009 It cannot be explained any better than the help file. left = top x coord of area to search Top = top y coord of area to search Right = bottom x coord of area to search Bottom = bottom y coord of area to search I cannot think of another wa to explain the other params AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ForsakenGod Posted November 17, 2009 Author Share Posted November 17, 2009 THe problem is when i set up autoit by that it just does not search the area i want : / damn Link to comment Share on other sites More sharing options...
JohnOne Posted November 17, 2009 Share Posted November 17, 2009 Show some example code. Someone may better help you that way. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Kiroshi Posted November 17, 2009 Share Posted November 17, 2009 does it give any ERRORs ? Link to comment Share on other sites More sharing options...
ForsakenGod Posted November 17, 2009 Author Share Posted November 17, 2009 (edited) HotKeySet("{F4}", "ExitProg") HotKeySet("{F3}", "StartProg") While 1 Sleep(100) Wend Func StartProg() while 1 PixelSearch(1523 ,23 ,1532 ,518 ,0xFFF00) If @error = 0 Then MouseClick("left",1048,729,1,0) Sleep(500) Else PixelSearch(1523 ,23 ,1532 ,518 ,0x8000FF) If @error = 0 Then WinActivate("Bez názvu – Poznámkový blok") Send("LOL") EndIf EndIf WEnd EndFunc Func ExitProg() Exit 0 EndFunc As i sayd i am trying to search only certrain area but it does not work I dont get any errors it just searches bad area Btw is there way at Else instead of doinf Send("Lol") to start some second function ? Edited November 17, 2009 by ForsakenGod Link to comment Share on other sites More sharing options...
jvanegmond Posted November 17, 2009 Share Posted November 17, 2009 (edited) ForsakenGod, keep your questions about one particular topic in one thread.http://www.autoitscript.com/forum/index.php?showtopic=105546 Edited November 17, 2009 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
ForsakenGod Posted November 17, 2009 Author Share Posted November 17, 2009 I am sorry for that would del this one if i could but i am really confused spend so mutch time on it and it does not work : / Link to comment Share on other sites More sharing options...
JohnOne Posted November 17, 2009 Share Posted November 17, 2009 (edited) You say it dosent work, but what exactly is happening ? Try this to test if you are finding your colour #include <Array.au3> ;HotKeySet("{F4}", "ExitProg") HotKeySet("{F3}", "StartProg") While 1 Sleep(100) WEnd Func StartProg() While 1 $pixel = PixelSearch(1523, 23, 1532, 518, 0xFFF00) _ArrayDisplay($pixel) Wend EndFunc Edited November 17, 2009 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ForsakenGod Posted November 17, 2009 Author Share Posted November 17, 2009 (edited) Well the problem was that i didnt relize that infinite loop may cause the failure : / Basically it just searched searched and didnt tar the window i ve fixed it now yuppey JohnOne have you ICQ , Skype or so ? I would be really gratefull if you could help me Edited November 17, 2009 by ForsakenGod Link to comment Share on other sites More sharing options...
JohnOne Posted November 17, 2009 Share Posted November 17, 2009 I do not Seriously mate, I'm not qualified anyway, I am a noob sorry AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
ForsakenGod Posted November 17, 2009 Author Share Posted November 17, 2009 Anyone knows if i can stop one function and start some other when its in loop ? Like look in my code in above post. Like after If @error = 0 Then WinActivate("Bez názvu – Poznámkový blok") Send(" Najdena Zlta ") I would like to stop loot and let the second function begin is there some way ? Link to comment Share on other sites More sharing options...
Bert Posted November 17, 2009 Share Posted November 17, 2009 It would be best for you to take AutoIt 1 2 3. It is a class that will teach you the basics. Takes a couple of hours depending on how fast you pick it up. If you do this, many of your basic questions will be answered, saving you much time in the long run. Link to it is in my signature. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now