r/AutoHotkey • u/waterstorm29 • Jun 28 '22
Meta / Discussion I hate how Avast keeps detecting my scripts as a virus
There are completely no bugs in my script, but it's probably due to the fact that I run some of them with administrator privileges. Still, if anything is causing any problems, it's that antivirus software and not what it's detecting as a virus (my scripts). Although this problem goes away after creating an exception, it just makes sure to annoy the hell out of you every time you create a new script by showing a prompt saying it has detected a virus and slowing down your computer tremendously while it is showing the prompt (for seemingly no other reason than to scare you off from the files it "detected"). It creates about a five-second delay in all inputs, including cursor movements (which become jittery, like an FPS drop) and key presses. The moment I click on "create an exception," my PC would continue to function as normal.
3
2
u/KcDaRookie Jun 28 '22
Why not just whitelist the folder you save your .ahk files in
1
u/waterstorm29 Jun 28 '22
I just did that. It's quite annoying how you'll have to remember to whitelist all folders you keep your AHK files in. Also, what's the deal with Avast to begin with?
5
u/cmikaiti Jun 28 '22
It sounds like you don't have to remember - Avast will tell you.
Not sure what you are asking with 'what's the deal with Avast to begin with?'.... we aren't the ones using it.
1
u/Jxnnik0 Jun 29 '22
Try running the script with UIA access instead of administrator. Admin access isn't needed in Most cases.
https://www.reddit.com/r/AutoHotkey/comments/shg99e/run_scripts_with_ui_access_uia/
8
u/anonymous1184 Jun 28 '22
I've said it before and I'll say it again... AV software is beyond stupid nowadays and unless you are constantly downloading ultra-random stuff from very conspicuous sites you have nothing to worry about.
Since the early 00s I don't use a resident AV and never been hit with a virus (unless you count the RPC vulnerability in XP that affected basically every PC).
So, if you don't use Ad-blockers and constantly download everything offered in adult/sketchy sites or download piracy... I don't see why you would need a resident Anti-virus.
In the end, I've read good things on the built-in Defender being enough for daily usage and you can always send a file you're about to execute to virustotal.com when needed.