Jump to content

Find out where change happen


hxhjx
 Share

Recommended Posts

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

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 by jerem488

Qui ose gagneWho Dares Win[left]CyberExploit[/left]

Link to comment
Share on other sites

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

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 by jerem488

Qui ose gagneWho Dares Win[left]CyberExploit[/left]

Link to comment
Share on other sites

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

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...