Jump to content
Sign in to follow this  
hxhjx

Find out where change happen

Recommended Posts

hxhjx

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)

Share this post


Link to post
Share on other sites
jerem488

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]

Share this post


Link to post
Share on other sites
jerem488

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]

Share this post


Link to post
Share on other sites
hxhjx

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

Share this post


Link to post
Share on other sites
hxhjx

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

Share this post


Link to post
Share on other sites
jerem488

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]

Share this post


Link to post
Share on other sites
hxhjx

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?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.