Jump to content

Pixel Copy


erifash
 Share

Recommended Posts

This is two scripts that should be kept in the SAME directory.

Script #1 (img.au3)

Uses a complicatedpixel algorithm to copy all the pixel colors of a certain area into a TEXT file. Best used for a small area.

To use:

Press 1 to initialize, move your mouse to the UPPER-LEFT hand corner of the rectangle you want to copy and press ESCAPE, move your mouse to the LOWER-RIGHT hand corner of the rectangle you want to copy and press ESCAPE. It will copy the pixels in the rectangle to a text file.

Script #2 (reconstruct.au3)

Uses the hex.txt file exported by the first script and reconstructs the image onto the screen

To use:

Run it in the same directory as hex.txt.

The files (hex.txt is the demo image):

Link to comment
Share on other sites

You should make it one script, and also use DLLOpen and DLLClose.

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
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...