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

1422Re: [perlguitest] SelListViewItemText ........

Expand Messages
  • Girish
    Jul 6, 2006
    • 0 Attachment
      Hi Santhosh,
      I tried below ....

      #####Get the Handle of window "Profiles"#########
      my @whnds = FindWindowLike(0,'Profiles',"");
      sleep(1);
      #####Get the child windows and their handles of the
      window "Profiles"#########
      my @wnds = GetChildWindows('@whnds');
      sleep(1);
      print "@wnds\n";

      It returned below in the command prompt:
      D:\GirishXP64\Profile>perl 64xp1.pl
      65700 65710 393654 65908 262492 196662 131390 196754 196732 196666 65868
      65702 1
      96660 196664 262182 65766 65712 65566 197194 131748 131750 131676 131660
      197198
      2949236 131704 328188 1769590 590280 197054 590158 524750 327818 131392
      65892 65
      894 262276 393606 328106 65914 65902 131414 196758 196738 131354 65824 65820
      658
      16 65814 65808 65744 65778 721100 65802 65800 65798 65796 65794 65792 65790
      6578
      8 65786 65782 65776 65756 65754 65734 65732 65650 196670 327716 196680
      262250 65
      638 65614 65842 65716 65704

      Next I want to write the command for a SysListView32 object, but I'm
      confused with the above output, how to know which handle belongs to which
      object?

      SelListViewItemText( $hwnd, $txt);

      Please tell me how should I solve the above problem

      Thanks
      -Girish.



      On 7/6/06, Santosh Kumar <kadlisantosh@...> wrote:
      >
      > Girish,
      > Window handle happens to be a variable number & cannot be obtained by
      > looking at the screen shots.
      > If you have a constant window title, you can try using "FindWindowLike"
      > function.
      >
      > This will return the window handle, if you provide a window Name /title.
      >
      > Syntax : @hwnd = FindWindowLike( $parent, $titleregex, $classregex,
      > $childid, $maxlevel );
      > Help Available:
      > http://www.piotrkaluski.com/files/winguitest/docs/ch09s05.html
      >
      > Rgds,
      > Santosh kumar
      >
      > ----- Original Message -----
      > From: Girish
      > To: perlguitest@yahoogroups.com
      > Sent: Wednesday, July 05, 2006 6:11 PM
      > Subject: [perlguitest] SelListViewItemText ........
      >
      >
      > IHi All,
      >
      > 'm trying to execute the below command, bit it fails ..... Please any one
      > correct my command i.e. i'm confused with the "hwnd" argument, tell me
      > what
      > is the hwnd value (from the attached screenshot "ListProperty") Profile
      > for
      > the ListItem "WNG-Auto-06G" (shown in attached screenshot - Profiles)
      >
      > #To select the List Item "WNG-Auto-06G" from the List "List2"
      > *SelListViewItemText("002701F8",'WNG-Auto-06G');*
      >
      > Command syntaax: SelListViewItemText( $hwnd, $txt, $multi_select );
      >
      > Please tell me the hwnd value from the screenshots attached, it will be a
      > gr8 help
      >
      > Thanks in Advance
      > -Girish.
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >
      >


      --
      Rgds,
      Girish :-)


      [Non-text portions of this message have been removed]
    • Show all 3 messages in this topic