> I didn't read your post very closely... you wanyed it as a function

You should probably also put the cursor back where it was before you're
done:

function pixelColor x,y
   put the screenMouseLoc into tOldLoc
   put the topLeft of this stack into theLoc
   set the screenMouseLoc  to (item 1 of theLoc + x,item 2 of theLoc + y)
   put the mouseColor into tVal
   set the screenMouseLoc to tOldLoc
   return tVal
end pixelColor

Ken Ray
Sons of Thunder Software, Inc.
Email: [email protected]
Web Site: http://www.sonsothunder.com/



_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to