Jump to content

Pixelchecksum... works not?


Recommended Posts

Hello :)

Could just someone tell me what wrong with this :)

global $hWnd = WinGetHandle ("Spotify"); allso tried ("[CLASS:SpotifyMainWindow]") but that did not work either


$checksum = PixelChecksum (829,735,851,740,1,$hWnd)


While $checksum = PixelChecksum (829,735,851,740,1,$hWnd)
  Sleep(100)
WEnd

MsgBox (0,"","something in the area has changed")
Link to comment
Share on other sites

What exactly doesnt work for you? Cuz this works for me. Check if youve put every coordinate correct and check your window title (get it with the Autoit window info).

$hWnd = WinGetHandle ("YOUR WINDOW TITLE")
MsgBox(0, "", "") ;i pressed ok when i was already in that window << so it wouldent go off
$checksum = PixelChecksum (829,735,851,740,1,$hWnd)

While $checksum = PixelChecksum (829,735,851,740,1,$hWnd)
  Sleep(100)
WEnd

MsgBox (0,"","something in the area has changed")
Edited by darkmaster071
Link to comment
Share on other sites

Ok,

ahh ok, sorry... then i think i have missunderstood how these funcons works...

Because i want it to "Pixelchecksum" in a window witch is either not active or minimized... so it checks if the pixels change in a background window ...

Edited by Vegar
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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