AutoHotkey Community

It is currently May 24th, 2012, 1:43 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: December 16th, 2004, 12:26 am 
Offline

Joined: September 14th, 2004, 11:03 pm
Posts: 21
Norton Antivirus Autoprotection likes to hang somewhere in your tray eating those CPU cycles and wasting your memory.

Meanwhile, there's no need to keep it up and running the whole day - it would be nice just to start it whenever it is needed - right when you have downloaded that_nice_program_from_the_internet_everyone_is_raving_about and want to check it out.

Here's my little script to turn norton autoprotect on/off.
Just copypaste it to your autohotkey.ini


Code:
; Norton Antivirus ========================================================================================


#n::
   RunWait, %comspec% /c net stop navapsvc, , Hide
   if ErrorLevel = 0
      MsgBox,,Norton AntiVirus, Autoprotection successfully STOPPED !,10
   else
   {
      RunWait, %comspec% /c net start navapsvc, , Hide
      if ErrorLevel <> 0
      {
         MsgBox, Failed either start or stop Norton AntiVirus autoprotect`nIs service installed ?`nEror:%ErrorLevel%
         return
      }
      MsgBox,,Norton AntiVirus, Autoprotection successfully STARTED !,10
   }   

return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 16th, 2004, 12:36 am 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Meh. I never really noticed it wasting any cycles, and I've got 512mb of RAM, so I'll pass. Cool script though, I'm sure some will find it useful.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 16th, 2004, 4:00 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1865
there must b some sendmsg code too.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cerberus, cmulcahy, Google [Bot], hoppfrosch, MSN [Bot], RaptorX and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group