Jump to content
Sign in to follow this  
erifash

Pixel Copy

Recommended Posts

erifash

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

Share this post


Link to post
Share on other sites
Insolence

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.

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.