finalfx Posted August 19, 2008 Share Posted August 19, 2008 Hello everyone just having a little trouble and wondering if anyone can point me in the right direction. I am trying to automate UPH-Clean from Microsoft Here is my script... $UPH = 'C:\Windows\System32\msiexec.exe /i "C:\UPHClean-Setup.msi"' Runwait($UPH) controlclick("User Profile Hive Cleanup Service", "&Next >", "Button1") It's not fancy but it clicks "Next" about once every 10 times I run it. I have also tried "Next >" instead of "&Next >" if anyone can help me figure out how to activate the next button I can finally finish all my app automations. Thanks for your time guys. Link to comment Share on other sites More sharing options...
muzle6074 Posted August 19, 2008 Share Posted August 19, 2008 Try running the exe then using winwaitactive(), that's how I do it and it works for me Link to comment Share on other sites More sharing options...
finalfx Posted August 19, 2008 Author Share Posted August 19, 2008 Thanks, I have another Q. one of the installs goes "install" "decompression" "install" but the titles at the top are all the same so how can I make it wait until the decompression is done to submit another button press? Link to comment Share on other sites More sharing options...
TerarinK Posted August 19, 2008 Share Posted August 19, 2008 does the thing change text of the application, because then you can change that in the title and text. with a WinWait 0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E Link to comment Share on other sites More sharing options...
finalfx Posted August 19, 2008 Author Share Posted August 19, 2008 I've been trying but it won't catch the text in the winwait.Those are my images and here is my code so far Run("antivir_workstation_winu_en_h.exe") ;Clicks Accept and starts decompression WinWaitActive("Avira AntiVir Personal - Free Antivirus") Controlclick("Avira AntiVir Personal - Free Antivirus", "Accept", "Button1") ; Waits until after decompression and activates "next" button WinWaitActive("Avira AntiVir Personal - Free Antivirus", "Welcome to the setup") Controlclick("Next", "Button2")The second Control click does not work because it can't tell the difference between the 2nd and third screens. 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