Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Malwarebytes Update dialog

$
0
0

Hi everyone, first post here so take it easy on me.  I am new to AutoIt and trying to write a script that will download malwarebytes, install it, update, then run a quick scan.  Everything works flawlessly except when it updates, there is an OK dialog that I cannot seem to automate.  The script wont continue until I click OK, and I have tried multiple ways but none seem to work.  Any help is greatly appreciated. 

 

Here is my code so far:

#RequireAdmin InetGet("http://www.malwarebytes.org/mbam/program/mbam-setup.exe", @ScriptDir & "mb.exe", 0) RunWait("mb.exe /SILENT") ProcessWaitClose("mbam.exe") If FileExists("C:\Program Files (x86)") Then    RunWait("C:\Program Files (x86)\Malwarebytes' Anti-Malware\mbam.exe  /updateshowdialog")    ControlClick("Malwarebytes Anti-Malware","The database was successfully updated ",2)    Run("C:\Program Files (x86)\Malwarebytes' Anti-Malware\mbam.exe /quickscan") ElseIf FileExists("C:\Program Files") Then    RunWait("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe  /updateshowdialog")    ControlClick("Malwarebytes Anti-Malware","The database was successfully updated ",2)    Run("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe /quickscan") Else    MsgBox(0,"MBAM not found","Malwarebytes Installation failed") EndIf

Besides for the ControlClick, I have tried activating the window as well, WinWait, WinActivate, etc.

 

 

EDIT: sorry, I should have been more specific...It appears when I update after this line

 "RunWait("C:\Program Files\Malwarebytes' Anti-Malware\mbam.exe /updateshowdialog")"

 

Here is the box that appears:

 

zlvkb6.png


Viewing all articles
Browse latest Browse all 12506

Trending Articles