in reply to Re^9: Gui Automation using guitest
in thread Gui Automation using guitest
#! usr/bin/perl #use Win32::Gui; use Win32::GuiTest qw(:ALL); use strict; my $window = FindWindowLike( undef,"[Install*.*|*Setup.*]","" ); for($window) { SetForegroundWindow($window); my @hwnds = GetChildWindows($window); foreach(@hwnds) { SetForegroundWindow($_); my $var = GetWindowText($_); print "shayak"; print $var; my $class = GetClassName($_); print $class; #my $child = GetChildDepth(GetDesktopWindow(), $_); #print $child; if ($class eq ["*RadioButton"]) { my $id=GetWindowID($_); print $id; #CheckButton(GetWindowID($name); if (WMGetText($id)eq(["*agree*" ]or ["*accept*"])) { CheckButton($id); } else { SendKeys{"TAB"}; SendKeys{"UP"}; } } #PushButton("Next" or "Agree" or "Install" or "Yes" or "Fi +nish" or "Done"); SendKeys("~"); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Gui Automation using guitest
by Corion (Patriarch) on Feb 15, 2011 at 10:39 UTC | |
by shayak (Acolyte) on Feb 15, 2011 at 10:45 UTC | |
by Corion (Patriarch) on Feb 15, 2011 at 10:49 UTC | |
by shayak (Acolyte) on Feb 15, 2011 at 10:58 UTC | |
by Corion (Patriarch) on Feb 15, 2011 at 11:40 UTC | |
| |
by marto (Cardinal) on Feb 15, 2011 at 10:56 UTC | |
by shayak (Acolyte) on Feb 15, 2011 at 11:17 UTC | |
by Anonymous Monk on Feb 15, 2011 at 11:26 UTC |