Aortal Posted October 7, 2006 Posted October 7, 2006 Isnt something like this used in Diablo bots? To manualy read item drops?
jackyyll Posted October 7, 2006 Posted October 7, 2006 Well for that image, the first thing you would do is have it scan the pixels. Then it would itentify non-bg color pixels and try to find patterns. First have it find the little circle, which ofcourse would be an "i". Then, find the m by looking at the curves up and down. The "O" you just find the curvature of the top of it and then the r you find the curve from the start to the end. You need to have it so it can find recognitable patterns, and then isolate those pixel "zones" and test them to make sure they're really the letter the program thinks it is. After isolating it, rule that area out for the next scan of letters and do the same thing. It's hard to program, but it is definetaly possible.
ConsultingJoe Posted October 8, 2006 Posted October 8, 2006 Well for that image, the first thing you would do is have it scan the pixels. Then it would itentify non-bg color pixels and try to find patterns. First have it find the little circle, which ofcourse would be an "i". Then, find the m by looking at the curves up and down. The "O" you just find the curvature of the top of it and then the r you find the curve from the start to the end. You need to have it so it can find recognitable patterns, and then isolate those pixel "zones" and test them to make sure they're really the letter the program thinks it is. After isolating it, rule that area out for the next scan of letters and do the same thing. It's hard to program, but it is definetaly possible.Its harder than it looks. lets see if you can write something for that Check out ConsultingJoe.com
jackyyll Posted October 10, 2006 Posted October 10, 2006 I cant with autoit Unless you have some imaging DLL that works
dandymcgee Posted October 18, 2006 Posted October 18, 2006 IS THERE ANY POSSIBLE WAY YOU GUYS COULD PPPLLLLEEEAAASSSEEE STOP POSTING .RAR FILES!!!! WinRar IS NOT FREE SOFTWARE AND MY DEMO HAS RUN OUT!!! Thank you. - Dan [Website]
this-is-me Posted October 19, 2006 Posted October 19, 2006 Or ZipGenius. Also free, and works with a lot of formats. Who else would I be?
Lytus Posted October 26, 2006 Posted October 26, 2006 Could someone inform me on what to change if I want to search the screen for "test.bmp" and click the picture. $image = _findImageOnScreen("test.bmp", "0,0,0,0", 0) If $image <> 0 Then For $r = 1 to UBound($var)-1 MouseClick($var[$r][1] , $var[$r][2], 20 ) Sleep(200) Next EndIf Dosnt work ([took code from example]I have test.bmp in the same directory) Thanks in advance ~Vivvic~ You're missing a parameter for MouseClick(). You can look it up here: http://www.autoitscript.com/autoit3/docs/f.../MouseClick.htm ----- My apologies if bumping this topic causes grief, and my gratitude to the original supplier of this DLL. When used in a loop, "image_in_clipscreen_rects" causes a memory leak that will eventually crash the program. If you want to see for yourself, just run an infinite loop with the single function call "image_in_clipscreen_rects" and watch the memory usage climb, eventually crashing. I'd like to know the following: 1) Could this get fixed? 2) If this DLL has gone to the graveyard, is there a DLL that does the same thing w/o a leak? It would be a pity to have to dump the use of this library because the garbage isn't cleared.
windblast Posted October 27, 2006 Posted October 27, 2006 I have a question: how to do for the AzText... function can find diffent distance of each word between the $fincText ?
GRom Posted November 1, 2006 Posted November 1, 2006 Analizer library give search features for text and images. You can save screenshot of the window to clipboard, find text/image and click. For applications with not standard GUI it is good choice.DLL, Wrapper and Sample in archive.vertex, thanks for this library. But it looks that it doesn't work with large images. I got dual monitors with 1280x1024 resolution. I'm playing with CyberGlitch's sample.So your dll works if i'm resizing active window (a window where i'm searching for a sample bmp) to be small.And it doesn't work if i'm maximizing a window to a full screen.any suggestions?
AzKay Posted November 1, 2006 Posted November 1, 2006 IS THERE ANY POSSIBLE WAY YOU GUYS COULD PPPLLLLEEEAAASSSEEE STOP POSTING .RAR FILES!!!! WinRar IS NOT FREE SOFTWARE AND MY DEMO HAS RUN OUT!!! Thank you.You can still use it after its run out.@Everyone ||Its not impossible, its hardly impossible. Ive seen alot of people on all different forums who have done it. You just need to know how your going to do it. Its far from impossible. # MY LOVE FOR YOU... IS LIKE A TRUCK- #
anv Posted December 8, 2006 Posted December 8, 2006 Erm.. How can I download the files attached higher? Doesn't look like I can download anything at all...
AzKay Posted December 8, 2006 Posted December 8, 2006 They work for me, Clicking them doesnt work? # MY LOVE FOR YOU... IS LIKE A TRUCK- #
anv Posted December 8, 2006 Posted December 8, 2006 Here's what is says:Board MessageSorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.The error returned was:Sorry, but you do not have permission to use this feature. If you are not logged in, you may do so using the form below if available.You really need a permission from the admin to download what others had attached to their posts?
anv Posted December 9, 2006 Posted December 9, 2006 Wow, I'm downloading. Don't know whom I should be sending my thanks, but I'm happy, that's a fact.
anv Posted December 10, 2006 Posted December 10, 2006 (edited) $var = _findImageOnScreen("exs/1.bmp", "0,0,0,0", 0) in this line, is it possible to put variables instead of fixed values of "0,0,0,0" to have something like below. the way i tried it, it didn't work $var = _findImageOnScreen("exs/1.bmp", "$X,$Y,$X1,Y1", 0) btw, what does the last null in the brackets mean? Edited December 10, 2006 by anv
anv Posted December 10, 2006 Posted December 10, 2006 Yeah, and one more thing. How do you add correctly values to 2-dimension arrays, that come as the _findImageOnScreen result? Say, I have 0 0 198 344 566 909 and i want to add one more coordinate to get smth like 0 0 198 344 566 909 789 234 I'm puzzled with the _ArrayAdd command, as the help file only gives examples for 1-dim arrays.
anv Posted December 10, 2006 Posted December 10, 2006 (edited) I happened to stumble upon the solution to my first question: $n=58 & "," & 89 & "," & 857 & "," & 234 AZPrintWindow() $x = _findImageOnScreen("temp/1.bmp", $n, 0) I'm still puzzled about the 2-dim arrays thou. ---- It's only a partial solution as i found, only two first figures are used as the scan area left upper corner coords. right lower corner is left as it is - in the right lower corner of the printscreen image. Edited December 13, 2006 by anv
tok Posted January 18, 2007 Posted January 18, 2007 hi i cant get the sample code to work i have download test.bmp and all that. but nothing happend the i run the script. what is wrong? sorry for my eng. /tok
laffo16 Posted March 28, 2007 Posted March 28, 2007 func AZPrintWindow() $result = DllCall($AZDLLName, "none", "active_window_to_clip") AZDllError("AZPrintWindow") endfunc Is their anway i can give the name of the window which i need to be screen captured. In the program i'm writing there will be alot of interference from other windows being activated, thus i'm not sure if i will be able to activate the window i need and keep it active for the time i need to capture it. please advise anybody,
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