![]() Just amazing, I needed to do a PixelGetColour for about 190 (x,y) positions, was taking about 5-6 secs using the AutoIt function. No problems with Vista (Aero) or Windows 7.Īmazing. You can capture multiple screens at once and compare them. It's faster for capturing more pixels at once.Īll the pixels can be captured at once, then read at your convenience anywhere in the script. ![]() ![]() #include #include $hDll = DllOpen ( "gdi32.dll" ) $vDC = _PixelGetColor _CreateDC ( $hDll ) $vRegion = _PixelGetColor _CaptureRegion ( $vDC, 0, 0, ,, $hDll ) click left mouse button to exit While Not _IsPressed ( 0x01 ) $aPos = MouseGetPos ( ) $sColor = _PixelGetColor _GetPixel ( $vDC, $aPos, $aPos, $hDll ) ToolTip ( "The color under your mouse is: " & $sColor, $aPos + 3, $aPos + 3, "_PixelGetColor_GetPixel return", $hDll ) WEnd _PixelGetColor _ReleaseRegion ( $vRegion ) _PixelGetColor _ReleaseDC ( $vDC, $hDll ) DllClose ( $hDll ) This means that nothing is actually released automatically so that the end-user can keep maximum control over what happens. ![]() Please note that all of these functions are designed towards maximum performance. You first take a screenshot into memory, then use the pixel grabbing function as many times as you like, then call the destroy function. This is an UDF to get a pixel from the memory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |