Sign in to follow this  
Followers 0
LiLShinta

C++ Code to au3

5 posts in this topic

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)

Share this post


Link to post
Share on other sites



All of these functions have wrappers in WinAPI UDF, so don't be lazy and do it yourself.


"be smart, drink your wine"

Share this post


Link to post
Share on other sites

[qoute]All of these functions have wrappers in WinAPI UDF, so don't be lazy and do it yourself. [/qoute]

sorry eh'! im just a little kid in au.. thanks for you zedna.

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  
Followers 0