hxhjx Posted February 8, 2009 Share Posted February 8, 2009 Hi, is there a function or a script which checks where something has changed, after i created the checksum of an area? (for example my desktop) Link to comment Share on other sites More sharing options...
jerem488 Posted February 8, 2009 Share Posted February 8, 2009 Hi, is there a function or a script which checks where something has changed, after i created the checksum of an area? (for example my desktop) ; Get initial checksum $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) ; Wait for the region to change, the region is checked every 100ms to reduce CPU load While $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) Sleep(100) WEnd ... ???? Qui ose gagneWho Dares Win[left]CyberExploit[/left] Link to comment Share on other sites More sharing options...
hxhjx Posted February 8, 2009 Author Share Posted February 8, 2009 ; Get initial checksum $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) ; Wait for the region to change, the region is checked every 100ms to reduce CPU load While $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) Sleep(100) WEnd ... ???? Yeah but i want to know WHERE it changend and not that it changed Link to comment Share on other sites More sharing options...
jerem488 Posted February 8, 2009 Share Posted February 8, 2009 (edited) Yeah but i want to know WHERE it changend and not that it changed You simply put after this code the time : ; Get initial checksum $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) ; Wait for the region to change, the region is checked every 100ms to reduce CPU load While $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) Sleep(100) WEnd msgbox(0,"","The region of pixels has changed at : " @hour&":"&@min&":"&@sec) Edited February 8, 2009 by jerem488 Qui ose gagneWho Dares Win[left]CyberExploit[/left] Link to comment Share on other sites More sharing options...
hxhjx Posted February 8, 2009 Author Share Posted February 8, 2009 You simply put after this code the time : ; Get initial checksum $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) ; Wait for the region to change, the region is checked every 100ms to reduce CPU load While $checksum = PixelChecksum(0,0, @desktopwidth,@desktopheight) Sleep(100) WEnd msgbox(0,"","The region of pixels has changed at : " @hour&":"&@min&":"&@sec) Well you speak also english? i want to know WHERE (the location where pixel changed).... not when Link to comment Share on other sites More sharing options...
Bert Posted February 8, 2009 Share Posted February 8, 2009 What is the game you want to bot? The Vollatran project  My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
hxhjx Posted February 8, 2009 Author Share Posted February 8, 2009 What is the game you want to bot?Well there is no game to bot, i just want to know if there is a function which says me what changed on a screen (pixels). pixelchecksum just return that something changed Link to comment Share on other sites More sharing options...
jerem488 Posted February 8, 2009 Share Posted February 8, 2009 (edited) Well there is no game to bot, i just want to know if there is a function which says me what changed on a screen (pixels). pixelchecksum just return that something changed oh ! yes ! I don't know what i thought.... when i read this ! So you must use PixelGetColor() if you want know WHERE it changend ! Local $Pixel[1], $Pixel2[1] For $x = 0 To @DesktopWidth For $y = 0 To @DesktopHeight $Pixel[1] = PixelGetColor($x,$y) _ArrayAdd($Pixel,PixelGetColor($x,$y) Next Next For $x2 = 0 To @DesktopWidth For $y2 = 0 To @DesktopHeight $Pixel2[1] = PixelGetColor($x2,$y2) _ArrayAdd($Pixel,PixelGetColor($x2,$y2) ; Here you compare two arrays. ; And while the second array is = to se first, you redo the second for Next Next Edited February 8, 2009 by jerem488 Qui ose gagneWho Dares Win[left]CyberExploit[/left] Link to comment Share on other sites More sharing options...
hxhjx Posted February 9, 2009 Author Share Posted February 9, 2009 oh ! yes ! I don't know what i thought.... when i read this ! So you must use PixelGetColor() if you want know WHERE it changend ! Local $Pixel[1], $Pixel2[1] For $x = 0 To @DesktopWidth For $y = 0 To @DesktopHeight $Pixel[1] = PixelGetColor($x,$y) _ArrayAdd($Pixel,PixelGetColor($x,$y) Next Next For $x2 = 0 To @DesktopWidth For $y2 = 0 To @DesktopHeight $Pixel2[1] = PixelGetColor($x2,$y2) _ArrayAdd($Pixel,PixelGetColor($x2,$y2) ; Here you compare two arrays. ; And while the second array is = to se first, you redo the second for Next Next Ok , so i need to fill an array like a pc screen 0000000000000000000000000000000000000 0000000000000000000000000000000000000 0000001000000000000001000000000000000 0000000001100000000000000000000000000 0000000000100000000000000000000000000 1000000100000000000000000000000000000 0000000000000000000000000000000000000 and how can i check which elements in the array changed? 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