Jump to content

Recommended Posts

Posted

Hi.

This is my first script besides the 3 scripts they show how to make in the AutoIt tutorials. What I'm trying to do is a script that will open Ad-Aware SE personal, update the definitions, and then Perform a smart system scan.

Right now i'm stuck at the beginning. I want to click on "check for updates now" with this script, but it doesn't work.

Run ("C:\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe")
WinWaitActive ("Ad-Aware SE Personal")
ControlClick("Ad-Aware SE Personal", "", "TPanel10")

Here is what I get in Active Window Info

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:       X: 167  Y: 308  W: 500  H: 21
Control ID: 4196414
ClassNameNN:    TPanel10
Text:       
(Control is hidden)

Any Help would be greatly appreciated.

Posted

Hi.

This is my first script besides the 3 scripts they show how to make in the AutoIt tutorials. What I'm trying to do is a script that will open Ad-Aware SE personal, update the definitions, and then Perform a smart system scan.

Right now i'm stuck at the beginning. I want to click on "check for updates now" with this script, but it doesn't work.

Run ("C:\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe")
WinWaitActive ("Ad-Aware SE Personal")
ControlClick("Ad-Aware SE Personal", "", "TPanel10")

Here is what I get in Active Window Info

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:        X: 167    Y: 308    W: 500    H: 21
Control ID:    4196414
ClassNameNN:    TPanel10
Text:        
(Control is hidden)

Any Help would be greatly appreciated.

<{POST_SNAPBACK}>

This should do the trick..

ControlFocus ( "Ad-Aware SE Personal", "", 4196414)

ControlClick ( "Ad-Aware SE Personal", 4196414 , "left" , 1 )

Posted

This should do the trick..

ControlFocus ( "Ad-Aware SE Personal",  "", 4196414)

ControlClick ( "Ad-Aware SE Personal", 4196414 , "left" , 1 )

<{POST_SNAPBACK}>

Unfortunately it does not work. Maybe it has someting to do with (Control is hidden)?
Posted (edited)

Can you {TAB} to the button?

Edit: Forgot I have Ad-Aware SE lol. The "Check for updates now" window only appears when you have not updated your definitions for X amount of days. After you update them and then start Ad-Aware again the window does not appear, or are you only planning to run this script not that often so the "Check for updates now" will appear each time you run it?

Edit 2: Actually Im not sure if we have the same Ad-Aware. I have Ad-Aware SE Professional, and you have 'Personal' correct? So I guess what I said above may vary in your version.

Edited by Burrup

qq

Posted

Okay messing with Ad-Aware gets hairy as they dont have normal controls. I had to use pixel searches to do what I wanted it to do. I had created a full blown adware removal tool using Ad-Aware and Spybot S&D. I have since had my HDD fail. :( What you can do though is there are some command line paremeters that you can call Ad-Aware with so as to not have to use a bunch of MouseClick() commands and so on.

Just my thoughts. I have yet to redo my project. I wanted to do the mouse clicks and stuff on mine because I was using it more as a learning experience than something that could be used. Just look up Ad-Aware commandline. There is limited use of the command line functions in the personal, but just enough that its not terrible to do it that way.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted

The TAB button does not work to access this function, and I also can't use ALT+Letter.

If Ad-Aware does not have normal controls, I think i'll put my project on hold, and resume it when I'll have a little more experience with AutoIt. For now I'll check what I can do with command line.

Thank you all for your help sor far.

  • 2 months later...
Posted

...I want to click on "check for updates now" with this script, but it doesn't work...

<{POST_SNAPBACK}>

...you could skip doing that one step via the Ad-Adware interface if you use this line of code (and perhaps some error checking)

InetGet("http://updates.ls-servers.com/public/personal/defs.ref","C:\Program Files\Lavasoft\Ad-Aware SE Personal\defs.ref",1,0)

[size="1"][font="Arial"].[u].[/u][/font][/size]

Posted

I had to use clicking methods based on colors... (they change), but that was before the new edition. I havent recreated it yet.

If you wanna spend the money and upgrade you can just run it from command line in complete stealth mode.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Posted (edited)

a previous post from JdeB

;Here's an exaple that start adaware and clicks 'Scan Now" and then "Next"...
Opt("WinDetectHiddenText", 1)
Run("C:\Program Files\Lavasoft\Ad-Aware SE Personal\Ad-Aware.exe")
WinWait("Ad-Aware SE Personal","Definitions File Loaded")
ControlClick("Ad-Aware SE Personal","Definitions File Loaded","TACimage11")
sleep(200)
ControlClick("Ad-Aware SE Personal","Definitions File Loaded","TACimage16")

and a down-loader for up-dates is here

http://www.autoitscript.com/forum/index.ph...31&hl=ad-aware#

hope it helps

8)

Edited by Valuater

NEWHeader1.png

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...