Guest jtrusse Posted June 28, 2005 Share Posted June 28, 2005 I am trying to automate the installation of Sophos anti-virus. Everything works fine until I get to the last window. For the life of me, I can not find any text that can be identified by WinWaitActive() Here is the Active window info Press CTRL-ALT-F to pause the display. >>>>>>>>>>>> Window Details <<<<<<<<<<<<< Title: Sophos Anti-Virus installation wizard Class: #32770 Size: X: 314 Y: 226 W: 525 H: 384 >>>>>>>>>>> Mouse Details <<<<<<<<<<< Screen: X: 11 Y: 278 Cursor ID: 5 >>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<< RGB: Hex: 0x000000 Dec: 0 >>>>>>>>>>> Control Under Mouse <<<<<<<<<<< Size: Control ID: ClassNameNN: Text: >>>>>>>>>>> Status Bar Text <<<<<<<<<<< >>>>>>>>>>> Visible Window Text <<<<<<<<<<< Sophos Anti-Virus installation wizard You have successfully installed Sophos Anti-Virus. When you click Finish, Sophos Anti-Virus will check the update source and update itself if necessary. This will ensure you are protected against the latest threats. < &Back Finish Cancel >>>>>>>>>>> Hidden Window Text <<<<<<<<<<< Sophos Anti-Virus installation wizard Wait while Sophos Anti-Virus is installed. Sophos Anti-Virus installation wizard After installation Sophos AutoUpdate can check for the latest updates to Sophos Anti-Virus. If you are downloading these directly from Sophos you will need to have access to the internet. Welcome to the Sophos Anti-Virus installation wizard. Click Next to continue with the installation. This wizard will install Sophos Anti-Virus and Sophos AutoUpdate which will keep your anti-virus software up to date. &Next > Help Here is what I have tried, to no avail. winWaitActive("Sophos Anti-Virus installation wizard", "You have successfully installed Sophos Anti-Virus.") winWaitActive("Sophos Anti-Virus installation wizard", "Finished") winWaitActive("Sophos Anti-Virus installation wizard", "When you click Finish") Attached is a screen shot of the window. Any ideas? Link to comment Share on other sites More sharing options...
FuryCell Posted June 28, 2005 Share Posted June 28, 2005 (edited) Why not try the following. WinWaitActive("", "You have successfully installed Sophos Anti-Virus.") WinWaitActive("", "Finished") WinWaitActive("", "When you click Finish") Edited June 28, 2005 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Guest jtrusse Posted June 28, 2005 Share Posted June 28, 2005 (edited) I think I found the problem. I am pretty sure the script actually worked the first time and Sophos installed fine. However, when I went back to test again, Sophos was already installed, and the setup program takes a different path. So I guess that is why you check to see if a program is already installed before trying to install it again. Thanks for your help. Edited June 28, 2005 by jtrusse Link to comment Share on other sites More sharing options...
FuryCell Posted June 28, 2005 Share Posted June 28, 2005 (edited) I think I found the problem. I am pretty sure the script actually worked the first time and Sophos installed fine. However, when I went back to test again, Sophos was already installed, and the setup program takes a different path. So I guess that is why you check to see if a program is already installed before trying to install it again. Thanks for your help.<{POST_SNAPBACK}>Your welcome. Sorry I wasn't able to help. Edited June 28, 2005 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now