Cool. That's the best way then. GUITest should be *ONLY* used it there is absolutely no way. But it's great that its there, because sometimes this situation exists.
For me, I use OLE Automation for Outlook testing, but for creating profiles, I'm screwed. M$ encrypts the stuff in the registry, so I cannot simply copy profiles, and recreate the stuff using Win32::Registry, thus I need to click on buttons. :-( But, hey it works. :-) > -----Original Message----- > From: Timothy Johnson [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 15, 2002 9:28 AM > To: '[EMAIL PROTECTED]'; 'Tom Bryan'; > [EMAIL PROTECTED] > Subject: RE: pass keystrokes > > > > Actually, the patch files themselves have switches that will suppress > rebooting. I think for most of them the switch is "/r:n". > > -----Original Message----- > From: macnerd [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 15, 2002 9:02 AM > To: 'Tom Bryan'; [EMAIL PROTECTED] > Subject: RE: pass keystrokes > > > You need to get Win32::GuiTest to put in keystrokes on click on > buttons. There was even a recent article in the Febuary edition > of Windows Developer. I managed to grab a copy from Borders before > they resorted their magazines. > > Check out these URLs for more information: > > Install and Binaries -> http://www.cpan.org/authors/id/E/ER/ERNGUI > Documentation, etc. -> > http://search.cpan.org/search?dist=Win32-GuiTest > Yahoo Group/Mailinglist -> > http://groups.yahoo.com/group/perlguitest/files > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED]]On > > Behalf Of Tom > > Bryan > > Sent: Friday, March 15, 2002 7:32 AM > > To: [EMAIL PROTECTED] > > Subject: pass keystrokes > > > > > > Hi guys, > > I have written a perl script, called from a .bat file > > invoked at logon > > and it basically looks through a list of Microsoft OS > patches based on > > OSbuild and then looks in the registry to see if the machine has the > > patch. This all works fine and if you dont have the patch > > well it does > > a system call to run the "somepatch.exe" install script from > > Microsoft. > > The problem is that I need to pass a "no" to the reboot > message popup > > window because a "yes" causes the dos window to fail and > give an error > > message....make sense? So my question is this, how can I pass a > > keystroke to the active window either in the login.bat or the perl > > script, without wrapping everything inside a scriptit type program? > > > > Any suggestions? > > -Thanks > > > > Tom Bryan > > College of Engineering > > Network Services > > Auburn University > > _______________________________________________ > > Perl-Win32-Admin mailing list > > [EMAIL PROTECTED] > > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > > _______________________________________________ > Perl-Win32-Admin mailing list > [EMAIL PROTECTED] > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs > > > -------------------------------------------------------------- > ------------------ > This email may contain confidential and privileged > material for the sole use of the intended recipient. > If you are not the intended recipient, please contact > the sender and delete all copies. > _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
