siriom Posted May 7, 2009 Share Posted May 7, 2009 Is there a function that searches a rectangle on screen for pixels of a certain colour and returns an array with 1's and 0's or something similar? Sorta like pixelsearch but with ALL positions that have that exact color and not just one... Yeah i could probably write something like this but im afraid anything i write is just gonna be really slow for any reasonable area... Also .... any idea how to turn the mouse invisible so i dont have show up if im "unlucky" ? Thanks Link to comment Share on other sites More sharing options...
Authenticity Posted May 7, 2009 Share Posted May 7, 2009 You need to rethink why would you need to match each pixel in a rectangular area and then you may drop it or probably conclude another approach for the task, or not ;]. Anyway, you can first get the PixelCheckSum of that rectangular area and compare it against a pre-collected value of the pixel check sum of a matching whatever... heh. To hide or show the mouse you can use _WinAPI_ShowCursor(). Link to comment Share on other sites More sharing options...
siriom Posted May 7, 2009 Author Share Posted May 7, 2009 You need to rethink why would you need to match each pixel in a rectangular area and then you may drop it or probably conclude another approach for the task, or not ;].Anyway, you can first get the PixelCheckSum of that rectangular area and compare it against a pre-collected value of the pixel check sum of a matching whatever... heh.To hide or show the mouse you can use _WinAPI_ShowCursor().I tried Ocr. Wasnt satisfied with the results.How "unique" is pixelchecksum ?Say i pixelchecksum "Hello there mister piglet"Whats the odds of that pixelcheck equalling a totalling diferent or remotely similiar phrase ? Link to comment Share on other sites More sharing options...
Authenticity Posted May 7, 2009 Share Posted May 7, 2009 Very odd but possible so it's not good. By the way, there is a good OCR library called Tesseract.au3, it's very good in my opinion but who knows, maybe you'll find your suiting one. Link to comment Share on other sites More sharing options...
siriom Posted May 7, 2009 Author Share Posted May 7, 2009 Very odd but possible so it's not good. By the way, there is a good OCR library called Tesseract.au3, it's very good in my opinion but who knows, maybe you'll find your suiting one.Used modi from officeWould advise against it.If you need one ocr i guess it works , when you need to do "accounting" on thousands of ocr'ed chars and try add say "3" to "i" (which only god knows why its "i" and not "1" like the other 99x i ran the bot...) it simply cant be trusted ... Yeah ocr is elegant and easy to use but for hardcore 100% accurate results it doesnt cut it... Link to comment Share on other sites More sharing options...
junkew Posted May 7, 2009 Share Posted May 7, 2009 http://www.autoitscript.com/forum/index.ph...5&hl=bitbltwill help you a little further. Read the whole thread it shows how to make it 0 and 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
siriom Posted May 7, 2009 Author Share Posted May 7, 2009 http://www.autoitscript.com/forum/index.ph...5&hl=bitbltwill help you a little further. Read the whole thread it shows how to make it 0 and 1~Maybe im blind but i didnt find itThe only time they talk about 1 and 0's is when they discuss black and white bmps which is kinda not the case Link to comment Share on other sites More sharing options...
Aceguy Posted May 7, 2009 Share Posted May 7, 2009 (edited) try this, i wrote it a while ago... http://www.autoitscript.com/forum/index.ph...c=81701&hl=you could get it to return 1 & o's through a slice of pixels accoriding to you colour you have selected, and allow for shade variations.? Edited May 7, 2009 by Aceguy [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock 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