Chimaera Posted November 28, 2012 Share Posted November 28, 2012 (edited) Ive been trying to make autoit press a button when a particular box apperas from a program $path_mal = @ProgramFilesDir & "Malwarebytes' Anti-Malwarembam.exe" SplashTextOn("Checking ...", "Malwarebytes Updating", 200, 50, -1, -1, 18) ShellExecuteWait( $path_mal, " /update") ; updates ;~ WinClose("[CLASS: #32770]", "") ;~ If WinExists("[CLASS:Button]") Then ;~ Send("{ENTER}") ;~ EndIf ;~ If WinExists("Malwarebytes Anti-Malware") Then ;~ Send("{ENTER}") ;~ EndIf ;~ WinWaitActive("[CLASS:Button; ID:2]","OK") ;~ Sleep(2000) ;~ Send("{ENTER}") SplashOff() Ive left some of my tries so you can see what ive been doing, but this particular button resist what im doing. It is active and the button is highlighted pressing enter on the keyboard works, just not thru the autoit Suggestions? Edited November 28, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Developers Jos Posted November 28, 2012 Developers Share Posted November 28, 2012 (edited) Doesn't ShellExecuteWait() make your script wait till the program is finished? Edited November 28, 2012 by Jos typo SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
kylomas Posted November 28, 2012 Share Posted November 28, 2012 Chimaera,This may help.kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Chimaera Posted November 28, 2012 Author Share Posted November 28, 2012 (edited) Doesn't ShellExecuteWait() make your script wait till the program is finished?yes it does what an idiot Thx@kylomasthis is the one i use looks a bit more recenthttp://forums.malwarebytes.org/index.php?showtopic=10138&view=findpost&p=162095 Edited November 28, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
kylomas Posted November 28, 2012 Share Posted November 28, 2012 (edited) Chimaera, Yes, your link is better. Did you try the switch "/update -silent" ? kylomas Edited November 28, 2012 by kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill Link to comment Share on other sites More sharing options...
Chimaera Posted November 29, 2012 Author Share Posted November 29, 2012 They don't all work because some of them are for the paid version. We generally encounter home users so only certain switches will do the job that we need and -silent is a paid one If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() 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