LiLShinta Posted May 11, 2008 Posted May 11, 2008 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)
Zedna Posted May 11, 2008 Posted May 11, 2008 (edited) Just search forum for API function names such as CreateCompatibleBitmap or BitBlt. There are many scripts. EDIT: typo Edited May 11, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search
Siao Posted May 11, 2008 Posted May 11, 2008 All of these functions have wrappers in WinAPI UDF, so don't be lazy and do it yourself. "be smart, drink your wine"
Zedna Posted May 11, 2008 Posted May 11, 2008 Some older example using the same API functions: BlackJack Resources UDF ResourcesEx UDF AutoIt Forum Search
LiLShinta Posted May 11, 2008 Author Posted May 11, 2008 [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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now