cobratbq Posted July 24, 2004 Share Posted July 24, 2004 Hi I'm trying to automate Ad-aware, but I found myself getting stuck on a very nasty problem. Ad-aware has some kind of a shell around him, and all I can monitor is ONE of his screens. And too bad it isn't the scanning-screen They only way I can think of to monitor whether the program is still scanning or not, is by reading the 'used CPU power' , if that one is above about 15% or so. But that can't be done (at least, i don't know how). Does someone have another idea on how to tell if Ad-aware is still scanning or not? Link to comment Share on other sites More sharing options...
Westi Posted July 24, 2004 Share Posted July 24, 2004 Hi, Ignorlst and prefs.ini has the actual filedate after the check. Hope this helps Link to comment Share on other sites More sharing options...
cobratbq Posted July 25, 2004 Author Share Posted July 25, 2004 (edited) Hi, Ignorlst and prefs.ini has the actual filedate after the check. Hope this helpsDamn man... smart thinking... It didn't help me, cause the file only gets updated when the program actually closes, and not when it's finished scanning. But tnx to that idea, I did find out that, while scanning, a 'Cache' directory was temporarilly created. So I did: Do Sleep(1000) Until FileExists("Adaware6\\Cache\\.") == 0 And it actually works (Just to be clear: with this you can detect when Ad-Aware is finished with scanning for adware, not when the program's closed or whatever other possibilities exist) Edited July 25, 2004 by cobratbq 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