Loading ...
Sorry, an error occurred while loading the content.
 

Re: [perlguitest] Digest Number 230

Expand Messages
  • Nagarajan M
    Hi, I think there is no way to identify paricular tray icon as a object. But still you can identify the trayicon by its tool tip and move mouse over there then
    Message 1 of 1 , Sep 1 8:55 AM
      Hi,

      I think there is no way to identify paricular tray icon as a object. But still you can identify the trayicon by its tool tip and move mouse over there then perform mouse click operations.

      Try with this function,

      # --------- Move the mouse over particular tray icon --------
      Arugument= Tray icon tool tip (reg exp)
      &GoToTray("Yahoo")

      sub GoToTray(){
      my $tray=$_[0];
      my @wintray=FindWindowLike(0,"","TrayNotifyWnd");
      SetForegroundWindow($wintray[0]);
      my ($l,$t,$r,$b)=GetWindowRect($wintray[0]);
      sleep 5;
      while(1)
      {
      MouseMoveAbsPix($r,$t+($b-$t)/2);
      sleep 1;
      my @all = FindWindowLike("");
      for my $obj (@all)
      {
      my $text=WMGetText($obj);
      my $class=GetClassName($obj);
      if($text=~/$tray/i && $class eq "tooltips_class32")
      {
      print"....Tray $tray Found\n";
      return 1;
      }
      }
      if($r<$l)
      {
      print"....Tray icon: $tray not Found.\n";
      return 0;
      }
      $r=$r-10;
      }
      }

      Thanks,
      Nagarajan M

      perlguitest@yahoogroups.com wrote:

      There is 1 message in this issue.

      Topics in this digest:

      1. open systray item
      From: "oakpark91345"


      ________________________________________________________________________
      ________________________________________________________________________

      Message: 1
      Date: Tue, 31 Aug 2004 19:58:13 -0000
      From: "oakpark91345"
      Subject: open systray item

      I have a windows xp system that has a 3rd party applet in the systray
      that I need to launch to then have act on.

      How can I open the applet from the command line from win32::Guitest?
      I have been unable to us spy++ to get the applets icon info.

      Kelly



      ________________________________________________________________________
      ________________________________________________________________________



      ------------------------------------------------------------------------
      Yahoo! Groups Links




      ------------------------------------------------------------------------



      Yahoo! India Matrimony: Find your life partneronline.

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.