I have below code which installs a filter. Below code working as expected BUT If I remove MsgBox statements its not executing anything.
I noticed that every MsgBox is halting script. So first MsgBox is halting until .exe file uncompresses. Is there any soltuion that I can check .exe file is uncompressed completely. I can tell script that execute in Synchronously like PHP script.
Please help out.
#SingleInstance Force
#NoTrayIcon
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode, 2
Run, BarracudaWSASetup.exe
MsgBox, 4, Confirmation test, Would you like to continue? (press Yes or No)
WinActivate, Web Security Agent - InstallShield Wizard
IfMsgBox Yes
IfWinActive, Web Security Agent - InstallShield Wizard
{
ControlClick, Button1, Web Security Agent - InstallShield Wizard, , Left, 1
;MsgBox, 4, Confirmation test, Would you like to continue? (press Yes or No)
;IfMsgBox Yes
MsgBox, Test1
ControlClick, Button6, Web Security Agent - InstallShield Wizard, , Left, 1
}
return