7inman12 Posted December 31, 2009 Share Posted December 31, 2009 I had a lot of trouble in the past making a pixel search I tried to make a search to find a certain color within a 10x10 sqaure around my Mouse Position. then left click it once sleep for 5 seconds then repeat till i end the function. I know how to make it repeat, click, and sleep, I know the color.... its 0xB80403 but I cant get it to search. I gave up on this a long time ago because I got very disappointed in myself and deleted everything now I want to start it and complete so if someone could plz make me a script and explain how to make this thing work properly. Thank you Link to comment Share on other sites More sharing options...
bogQ Posted December 31, 2009 Share Posted December 31, 2009 (edited) I dont see the point of detecting color around mouse position.Is that color detection mented for the color of mouse over object in some mmorpg game to detect when mouse change its color so that youl know that its on the target or something similar?If its not, after you show your code so that everyone can see what did you try, someone will probably come along and help you to correct them. Edited December 31, 2009 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
7inman12 Posted December 31, 2009 Author Share Posted December 31, 2009 So basicly Ok well. lemme me uhhhh be me precise. I tried to make 2 different scrpits 1 for just a basic pixel search within a defined window. And then one to search with a certain radius of the mouses position. So that i can manual hover my mouse around a certain thing that has the same designated color as other things but not what i want to target and have it automatically click on that color within the radius of the mouse. Link to comment Share on other sites More sharing options...
bogQ Posted December 31, 2009 Share Posted December 31, 2009 (edited) So is it for MMORPG?And if its not where is your new code that you have problems with?Edited:yes its for a mmorpg I dont have a code as of yet because I deleted them when i got aggravated and gave up. But now I am hoping someone could teach me maybe a few lines at a time. I dont want to sound like a leecher... or w/e you wanna call it lol but ummmmm give me a minute and i can try to throw one together. from what i remember. okSory your probably end up brakeing rules for that mmorpg so im not gona assist you Edited December 31, 2009 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related) There are those that believe that the perfect heist lies in the preparation.Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost. Link to comment Share on other sites More sharing options...
7inman12 Posted December 31, 2009 Author Share Posted December 31, 2009 yes its for a mmorpg I dont have a code as of yet because I deleted them when i got aggravated and gave up. But now I am hoping someone could teach me maybe a few lines at a time. I dont want to sound like a leecher... or w/e you wanna call it lol but ummmmm give me a minute and i can try to throw one together. from what i remember. ok Link to comment Share on other sites More sharing options...
7inman12 Posted December 31, 2009 Author Share Posted December 31, 2009 Func _Search() While $Repeat = True $Pos = MouseGetPos() $coord = PixelSearch(0, 0, 1680, 1050, 0xB80403) MouseMove($coord[0], $coord[1], 5) If $coord = PixelSearch($Pos, $Pos, $Pos, $Pos, 0xB80403) Then MouseClick("left", $coord[0], $coord[1], ) Else Sleep(5000) EndIf WEnd Link to comment Share on other sites More sharing options...
7inman12 Posted December 31, 2009 Author Share Posted December 31, 2009 Well yeah it would be breaking the rules, but its a friends private server but if you don't wanna help then thats fine. I understand. Link to comment Share on other sites More sharing options...
JohnOne Posted December 31, 2009 Share Posted December 31, 2009 Hmmm sounds pretty similar to a gentleman in this thread http://www.autoitscript.com/forum/index.php?showtopic=107476 The answer is in that thread too Perhaps your problem is the mouse pointer is hiding the pixel. 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...
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