GlovePIE:Get Pixel

From WiiLi

Jump to: navigation, search
// Get Pixel
// by Carl Kenner
// This script retrieves the color of the pixel beneath the mouse cursor, but it
// can easily be modified to check the color of a pixel at a static location.

var.hdc = USER32.DLL.GetDC(NULL)
var.pixel = GDI32.DLL.GetPixel(var.hdc, Int(mouse.CursorPosX), Int(mouse.CursorPosY))
USER32.DLL.ReleaseDC(NULL, Int(var.hdc))
debug = '0x'+IntToHex(var.pixel, 6)
Personal tools
Online Casino - best online casino reviews.
Facebook Developers - facebook applications, facebook developers, facebook development, social network application development and viral widget social media strategy