PERTU Posted June 1, 2005 Posted June 1, 2005 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.
Sphaera_ORbis Posted June 1, 2005 Posted June 1, 2005 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 )
PERTU Posted June 1, 2005 Author Posted June 1, 2005 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)?
buzz44 Posted June 1, 2005 Posted June 1, 2005 (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 June 1, 2005 by Burrup qq
JSThePatriot Posted June 1, 2005 Posted June 1, 2005 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)
PERTU Posted June 1, 2005 Author Posted June 1, 2005 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.
Mosquitos Posted September 1, 2005 Posted September 1, 2005 Use "hitmanpro" You can find it on www.hitmanpro.nl made with autoit! Sapiente vince, rex, noli vincere ferro!
herewasplato Posted September 1, 2005 Posted September 1, 2005 ...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]
w0uter Posted September 1, 2005 Posted September 1, 2005 Use "hitmanpro"You can find it on www.hitmanpro.nlmade with autoit!<{POST_SNAPBACK}>yeah its cool. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
JSThePatriot Posted September 1, 2005 Posted September 1, 2005 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)
Valuater Posted September 1, 2005 Posted September 1, 2005 (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 herehttp://www.autoitscript.com/forum/index.ph...31&hl=ad-aware#hope it helps8) Edited September 1, 2005 by Valuater
herewasplato Posted September 1, 2005 Posted September 1, 2005 and a down-loader for up-dates is herehttp://www.autoitscript.com/forum/index.ph...31&hl=ad-aware#hope it helps8)<{POST_SNAPBACK}>The orignal poster might be able to glean some info from that "down-loader" script --- but it is for an old version of Ad-Aware. There is only one file to download for the "SE" version. :-) [size="1"][font="Arial"].[u].[/u][/font][/size]
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