Having trouble setting up some automation

You need help to start using UVK? You have a doubt on a UVK feature? Post here!
Forum rules
We have no special rules for UVK forums. Just try to be polite and clear in your posts.
Please don't post spam in this forum. Spammers will be banned by IP, e-mail and username.
We reserve the right to delete all posts and ban all users we consider not having respected these rules without warning.
Post Reply
Xander
Posts: 438
Joined: Sun May 24, 2015 11:55 pm
Contact:

Having trouble setting up some automation

Post by Xander »

I'm looking to see how well I can automate UAK (until a premium version comes out). More of an exercise than anything right now.

I found a script elsewhere here to get the ball rolling so I'm trying to adapt it further.

Code: Select all

<UVKCommandsScript>
;Download the Ultra Adware killer version corresponding to the current OS arch

 <UpdateSoftware> -x64
%ThirdParty%\UAK64.exe | http://www.carifred.com/ultra_adware_killer/UltraAdwareKiller64.exe

 <UpdateSoftware> -x86
%ThirdParty%\UAK32.exe | http://www.carifred.com/ultra_adware_killer/UltraAdwareKiller.exe

;64 bits automation (Run and start scan)
 <Run> -x64
%ThirdParty%\UAK64.exe /NoUpdate
->WaitWindow()
->WaitControl([CLASS:Static; INSTANCE:11])
->ClickControl([CLASS:Static; INSTANCE:11]) ;scan
->WaitProcessClose()
->WaitControl([CLASS:Button; INSTANCE:1])
->ClickControl([CLASS:Button; INSTANCE:1])  ;found # items [OK]
->WaitProcessClose()
->WaitControl([CLASS:Static; INSTANCE:15]) ;clean
->ClickControl([CLASS:Static; INSTANCE:15]) 
->WaitProcessClose()
->WaitControl([CLASS:Button; INSTANCE:1])
->ClickControl([CLASS:Button; INSTANCE:1])  ;confirmation
->WaitProcessClose()
I just can't get it to recognize anything after the Scan button and could use some input.
Fred
Site Admin
Posts: 2360
Joined: Sat Jul 30, 2011 12:05 pm
Location: Red coast, France
Contact:

Re: Having trouble setting up some automation

Post by Fred »

The main problem with your script is the several instances of ->WaitProcessClose().

On the first instance, UVK will not do anything else until the UAK process ends, meaning all commands after the first ->WaitProcessClose() will be skipped.

Try removing all ->WaitProcessClose() instances except the last one.
One thing we humans have in common is that we are all different. So, if you think you're weird because you're different from everyone else, then we are all weird.

Fred
Post Reply