Sign in to follow this  
Followers 0
Vegar

Pixelchecksum... works not?

4 posts in this topic

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")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

anyone have any idèa of how i can di this? :)

Share this post


Link to post
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
Sign in to follow this  
Followers 0