jasc2v8 Posted March 17, 2012 Share Posted March 17, 2012 Toggles the AVG Anti-Virus on/off to prevent Autoit compiler issues.Developed and tested on Windows 7 x64 and AVG 2011 Free Edition using Au3Recorder.(does not violate the EULA: http://free.avg.com/us-en/avg-anti-virus-7-licence-agreement-eula)I hope this may be helpful to others.;THANKS TO Au3Recorder generated code (v3.3.7.0) Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc ;edit to match your version Run('C:\Program Files (x86)\AVG\AVG10\avgui.exe') _WinWaitActivate("AVG Anti-Virus Free Edition 2011","") Send("{ALTDOWN}t{ALTUP}a") _WinWaitActivate("Advanced AVG Settings","") Send("t{TAB}{TAB}{TAB}{TAB}{SPACE}{TAB}{TAB}{TAB}{ENTER}") _WinWaitActivate("AVG Anti-Virus Free Edition 2011","") Send("{DOWN}{TAB}{ENTER}") ;adjust delay if necessary on your pc Sleep(1000) Send("{ALTDOWN}{F4}{ALTUP}") 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