Jump to content

C++ Code to au3


Recommended Posts

I have this code on C++.. Someone here please translate it to au.

// init DC & bmps

HWND hWindow = GetDesktopWindow();
HDC DC = GetWindowDC(hWindow);
RECT Rect;
GetWindowRect(hWindow, &Rect);
int nWidth = Rect.Right;
int nHeight = Rect.Bottom;
HBITMAP hBmp = CreateCompatibleBitmap(DC, nWidth, nHeight);
HDC hMemDC = CreateCompatibleDC(DC);
SelectObject(hMemDC, hBmp);
BitBlt(hMemDC, 0, 0, nWidth, nHeight, DC, 0, 0, SRCCOPY);

COLORREF nColor = GetPixel(hMemDC, 200, 200)
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...