Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted

does the thing change text of the application, because then you can change that in the title and text. with a WinWait

0x576520616C6C206469652C206C697665206C69666520617320696620796F75207765726520696E20746865206C617374207365636F6E642E

Posted

I've been trying but it won't catch the text in the winwait.

Posted Image

Posted Image

Posted Image

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...