Vegar Posted July 9, 2009 Posted July 9, 2009 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")
darkmaster071 Posted July 9, 2009 Posted July 9, 2009 (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 July 9, 2009 by darkmaster071
Vegar Posted July 10, 2009 Author Posted July 10, 2009 (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 July 11, 2009 by Vegar
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