Nerd1337 Posted May 16, 2005 Share Posted May 16, 2005 Okay, I have been having troubles with this...mainly I am developing a program that will uninstall different kinds of antivirus software packages automatically, and then install a norton package automatically. I am currently testing for avast! antivirus software. Below is my code I have so far... MsgBox (33, "Dialog", "This is to make sure that it is doing something.") $UninstallValue = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\avast!", "UninstallString") MsgBox (33, "What the hell is it doing?", "The value of $UninstallValue is" & $UninstallValue) $var = "cmd /C %SYSTEMROOT%\System32\rundll32.exe %SYSTEMDRIVE%\PROGRA~1\ALWILS~1\Avast4\Setup\setiface.dll,RunSetup" Run ($var) WinWaitActive ("avast! Antivirus Setup") Send ("{DOWN}") Send ("!n") Sleep (6) WinWaitActive ("avast! Antivirus Setup") Send ("{TAB}") Send ("{DOWN}") Send ("{ENTER}") For some reason when i get to the second WinWaitActive ("avast! Antivirus Setup"), I can not figure out how to move the selection dot to "restart later" and then finish. Does anyone know how to wait for a uninstall to run to the last step of the uninstall and then have a way to automatically select "restart later" and then finish? Whatever advice you can give me would be great. Thanks. Link to comment Share on other sites More sharing options...
this-is-me Posted May 16, 2005 Share Posted May 16, 2005 Look in your start menu for Au3Info and is usage in the helpfile. It will be simple after that. Who else would I be? Link to comment Share on other sites More sharing options...
MarkMarkMark Posted May 16, 2005 Share Posted May 16, 2005 you can "unselect" or "select" something with your spacebar: send("{SPACE}" ) or you could do it with Controlcommand.... look it up in the help file Link to comment Share on other sites More sharing options...
SvenP Posted May 16, 2005 Share Posted May 16, 2005 you can "unselect" or "select" something with your spacebar: send("{SPACE}" )or you could do it with Controlcommand.... look it up in the help file<{POST_SNAPBACK}>Guys,Be careful NOT to let this topic out of control, like the previous 'girl needs help' topic?(See http://www.autoitscript.com/forum/index.ph...wtopic=7637&hl= )-Sven Link to comment Share on other sites More sharing options...
Helge Posted May 17, 2005 Share Posted May 17, 2005 Haha!I was actually thinking about the very same thing when I saw this topic !I was thinking like : "Oh my god, not again !" It's strange what we remember...-Helge-Guys,Be careful NOT to let this topic out of control, like the previous 'girl needs help' topic?(See http://www.autoitscript.com/forum/index.ph...wtopic=7637&hl= )-Sven<{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Nerd1337 Posted May 17, 2005 Author Share Posted May 17, 2005 No, no, not here to get people to write code for me or even try to get the most replies. I have tried using the help Info thing that autoIT has built in, but using the commandclick and command control, I still can not get it to work. What I mean but not working is that my script continues as if the call was never made, as if it was not even there. With the Send function, I am already using that...but I will try using your suggestion though. Link to comment Share on other sites More sharing options...
TuMbLeWeEd Posted May 17, 2005 Share Posted May 17, 2005 No, no, not here to get people to write code for me or even try to get the most replies. I have tried using the help Info thing that autoIT has built in, but using the commandclick and command control, I still can not get it to work. What I mean but not working is that my script continues as if the call was never made, as if it was not even there. With the Send function, I am already using that...but I will try using your suggestion though.<{POST_SNAPBACK}>Note that it is a virus scanner, and some virusses wil try to uninstall or delete programsSo it does not allow that. (It only shows the scanner is not that bad at all)Had a try once with a (Kerio) firewall, there was no way that i could send a command to the window, not even with the send My AutoIt stuffChatBichProjectSelectorWindow control grabberUsefull LinksPort forwarding with routers 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