Sign in to follow this  
Followers 0
Nerd1337

girl needs some advice

7 posts in this topic

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.

Share this post


Link to post
Share on other sites



Look in your start menu for Au3Info and is usage in the helpfile. It will be simple after that.


Who else would I be?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

:( 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}>

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 programs

So 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0