talwyn has asked for the wisdom of the Perl Monks concerning the following question:
Everything is fine until I get to a point where I need to read some information from the other app's listview control. When I attempt to retrieve an item from the listview the source app crashes. A dialog comes up and proclaims that an error has occurred and that a log will be written. The alleged log is, however, an empty text file.
The offending code is : <more>
my %tape = Win32::GUI::ListView::GetItem($listview,0); # This line causes the program at handle #$wh_DataCopier to crash the perl script runs along just fine until it realizes there isn't a program to talk to anymore.sub Select_Tapes ($@) { my $wh_DataCopier = shift; Win32::Sleep(700); my @handles = FindWindowLike ( $wh_DataCopier,"List1", undef ,unde +f); my $listview = $handles[0]; print "List view is at $listview \n"; print "There are :". Win32::GUI::ListView::Count($listview)."Tapes + listed in the Listview\n";
UPDATE Win32::GUI ver .670 for perl 5.6print "The First Item is $tape{'-text'}\n"; my @tapes = qw( 000001 000002 000003 000004 ); foreach $tape (@tapes) { my $tapeid=Win32::GUI::Combobox::FindString($listview,$tape); ($tapeid>0) ? print "Found a Tape $tape is index $tapeid\n": +print "Did not find tape $tape\n"; Win32::GUI::Combobox::Select($listview,$tapeid); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Automation Problem with Win32::GUI and Win32::GUITest
by talwyn (Monk) on Jun 02, 2005 at 04:58 UTC | |
|
Re: Automation Problem with Win32::GUI and Win32::GUITest
by talwyn (Monk) on Mar 19, 2004 at 00:14 UTC | |
by Anonymous Monk on Apr 29, 2005 at 16:26 UTC |