in reply to The power of Perl and Win32::GUI
use Win32::GUI; $screen = new Win32::GUI::DC("DISPLAY"); while(1) { ($x,$y) = Win32::GUI::GetCursorPos(); $color = $screen->GetPixel($x,$y); next if $color eq $last; $last = $color; printf ("%06X\n", $color); sleep 1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The power of Perl and Win32::GUI
by NetWallah (Canon) on Aug 15, 2005 at 21:19 UTC |