Jump to content

Recommended Posts

  • Replies 63
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

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.

Posted

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
Posted

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.

Posted

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?

Posted

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- #
  • 1 month later...
Posted

They work for me, Clicking them doesnt work?

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted

Here's what is says:

Board Message

Sorry, 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?

Posted (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 by anv
Posted

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.

Posted (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 by anv
  • 1 month later...
Posted

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

  • 2 months later...
Posted

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,

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...