using autoitx com objects in kix to get the pixel color

Code:

;the color pf the pixel at 10,100 is....
$oAutoIt = CreateObject("AutoItX3.Control")
$var = $oAutoIt.PixelGetColor(10,100)
? "The color is" + $var



Bryce