Vegar Posted July 9, 2009 Share 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") Link to comment Share on other sites More sharing options...
darkmaster071 Posted July 9, 2009 Share 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 Link to comment Share on other sites More sharing options...
Vegar Posted July 10, 2009 Author Share 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 Link to comment Share on other sites More sharing options...
Vegar Posted July 11, 2009 Author Share Posted July 11, 2009 anyone have any idèa of how i can di this? Link to comment Share on other sites More sharing options...
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