Is there a way to find out when the mouse was clicked and at what
  coordinates it was clicked in a window?  Same for a key press along
  with the key.

  I've been using Win32::GUI::GetMessage and a Timer but it does not
  always pick up the mouse clicks.  Depends on how often the Timer fires
  off.  Here's my little bit of code...

     ($rcode,$mi,$wparm,$iparm,$time,$x,$y) = Win32::GUI::GetMessage(0,10);
     #print "$rcode $mi $wparm $iparm\n";
     if ($rcode != -1 && ($mi == 513 || $mi == 162)) {
        # Mouse was clicked do something...
     }

   Is there a better way?

   My goal is to write a GUI Designer for Win32:GUI.  I have the 'basics' so
   far (ie. drag a button onto a window and place it with a mouse click). 

   Any help is greatly appreciated.

   -----------
   David Hiltz
   Email: [EMAIL PROTECTED]
   Unix System and Network Administrator
   Northeast Fisheries Science Center
   ######&@&######



Reply via email to