Another Win32Lib question: captureMouse()
- Posted by Ben Logan <wbljr79 at HOTMAIL.COM> Apr 08, 2000
- 514 views
I would like to get the value of a pixel on the screen but outside my program's window. I tried it like this: Use 'captureMouse(MainWin)' to send all mouse events to my main window. When the desired button is pressed, calculate the *screen* coords from the data passed to the onMouse(...) event handler, and data returned from 'getSize(MainWin)'. Use getPixel(Screen,x,y) to get the pixel value at the calculated location. Unfortunately, this didn't work. Any suggestions? Thanks, Ben ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com