LLK-WINDOW-CATCH (binary file version)

Source: Internet
Author: User

Capture the details in the "Browse history" window and save the analysis to the binary file screen. dat.

Storage Format ):

A8 88 7E 00...

It is a pixel with three characters, namely, two-color font, two-color font, and two-color font.

The storage class is binary.

//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////

/// // Main. CPP ////////////////////////////////

# Include "Main. H"

# Deprecision CX 800
# Define Cy 600
# Define size (CX * Cy * 5-1 + 2 + 1)

Void main (void)
{
Printf ("4 seconds of sleep, please try to minimize the speed of this window.../N ");
Sleep (4000 );
Hwnd hwndgame;
Colorref bit;
HDC;
Unsigned short X, Y;
// Byte Buf [size + 4], * pccurrent = Buf;
Byte pixel [3] = {0x00 };

Printf ("% s", "Start.../N ");

// Hwndgame = getmediatopwindow ();
Hwndgame = findwindow ("#32770", (lpctstr) "QQ game-serialization role edition ");
// Hwndgame = findwindow ("afx: e50000: 8: 10011: 0: 0", "QQ Game ");
// Hwndgame = findwindow ("consolewindowclass", null );
If (hwndgame = NULL)
{
Printf ("/" QQ game-Player version/"Window not found! /N ");
Return;
}
Printf ("hwndgame = 0x % x/N", hwndgame );

HDC = getdc (hwndgame );
If (HDC = NULL)
{
Printf ("HDC failed to get! /N ");
Return;
}
Printf ("HDC = % u/N", HDC );

// Upload the file
File * fpbin = fopen ("screen. dat", "WB ");
If (fpbin = NULL)
{
Printf ("binary file loss! /N ");
Return;
}
 
// Fprintf (fpbin ,"{");

// Pixel acquisition
For (y = 0; y <= 600; y ++)
{
For (x = 0; X <= 800; X ++)
{
Bit = getpixel (HDC, x, y );

// Upload-extract-token
/* Fprintf (fpbin, "% 02x", (BIT & 0x00ff0000)> 16 );
Fprintf (fpbin, "% 02x", (BIT & 0x0000ff00)> 8 );
Fprintf (fpbin, "% 02x", bit & 0x000000ff );*/

Pixel [0] = (byte) (BIT & 0x00ff0000)> 16;
Pixel [1] = (byte) (BIT & 0x0000ff00)> 8;
Pixel [2] = (byte) bit & 0x000000ff;

Fwrite (pixel, sizeof (byte), 3, fpbin );
/* Printf ("0x % 02x,", (BIT & 0x00ff0000)> 16 );
Printf ("0x % 02x,", (BIT & 0x0000ff00)> 8 );
Printf ("0x % 02x,", bit & 0x000000ff );*/
}
}

Releasedc (hwndgame, HDC );

// Fprintf (fpbin, "}/R/N ");
Fclose (fpbin );
 

Printf ("/n finished! /N ");

}
//////////////////////////////////////// EOF ////////////////////////////////////
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.