Author Topic: Avast keeps suspending AutoHotKey scripts  (Read 4882 times)

0 Members and 1 Guest are viewing this topic.

Offline Sam B

  • Newbie
  • *
  • Posts: 8
Avast keeps suspending AutoHotKey scripts
« on: May 12, 2021, 03:34:45 PM »
Hi all,

Recently I made a script using AutoHotkey which allows me to quickly open my projects in my browser using localhost (XAMPP). It used to work perfectly, but ever since I got Avast Ultimate, it doesn't. It keeps showing up in the task manager as 'Suspended'.
I've been trying to fix this for a couple of days, and today I decided to try putting Avast in passive mode. To my surprise, my script now works perfectly. So Avast is causing the issues, but I have no idea how to stop Avast from suspending the process.

I have added the .exe file of the script to the 'Allowed Apps list', as well as AutoHotKey itself and the AutoHotKey Script Compiler. I have also added the directory with the script and the .exe to the exceptions list, but neither of those actually fix the problem (at least not while Avast isn't in passive mode).

How do I stop Avast from suspending the process?

I don't know if it helps, but here's the code for my script:
Code: [Select]
folder = %1%
server = C:\Users\Gebruiker\OneDrive - Curio\Projecten\htdocs
StringReplace, url, folder, %server%, http://localhost/
StringReplace, url, url, \, /, All
Run, %url%
ExitApp

Offline r@vast

  • Avast team
  • Massive Poster
  • *
  • Posts: 2761
Re: Avast keeps suspending AutoHotKey scripts
« Reply #1 on: May 12, 2021, 04:25:30 PM »
Hi,

Did you receive any detection message from Avast?
Could you please temporary disable Avast Antivirus, right-click the Avast icon in the system tray and select Avast shields control. Choose one of the options.
Test and re-enable the shields one-by-one.


Offline Sam B

  • Newbie
  • *
  • Posts: 8
Re: Avast keeps suspending AutoHotKey scripts
« Reply #2 on: May 12, 2021, 06:39:58 PM »
Hi,

Thanks for your reply. At first, I did receive a detection message, but after that, I added it to the exceptions list and stopped getting the notifications.
Alright, I disabled all shields through the system tray icon. It still doesn't work, and the AHK process still gets suspended.

Last couple of times I changed some Avast settings through the system tray icon, Avast froze and was unable to restart. The only thing I found that helped was repairing the installation through the control panel (the same way you'd uninstall a program, but instead selecting repair) and restarting the computer. This just happened again. I can't start Avast and fixing it takes quite a while. Is there a fix for this?

Update:
After restarting the computer and disabling the shields (through the system tray icon), the script works perfectly. However, now Avast freezes again and I have to restart my computer (yet again).
« Last Edit: May 12, 2021, 06:55:52 PM by sambrands2001 »

Offline r@vast

  • Avast team
  • Massive Poster
  • *
  • Posts: 2761
Re: Avast keeps suspending AutoHotKey scripts
« Reply #3 on: May 13, 2021, 09:41:21 AM »
Hi,

Thanks for your reply. At first, I did receive a detection message, but after that, I added it to the exceptions list and stopped getting the notifications.
Alright, I disabled all shields through the system tray icon. It still doesn't work, and the AHK process still gets suspended.

Last couple of times I changed some Avast settings through the system tray icon, Avast froze and was unable to restart. The only thing I found that helped was repairing the installation through the control panel (the same way you'd uninstall a program, but instead selecting repair) and restarting the computer. This just happened again. I can't start Avast and fixing it takes quite a while. Is there a fix for this?

Update:
After restarting the computer and disabling the shields (through the system tray icon), the script works perfectly. However, now Avast freezes again and I have to restart my computer (yet again).

Hi,

Would you mind trying the following:
1. remove the exclusion
2. enable all shields
3. take a screenshot of the Avast detection message
4. disable only Behavior Shield and see if it makes a difference


Offline Sam B

  • Newbie
  • *
  • Posts: 8
Re: Avast keeps suspending AutoHotKey scripts
« Reply #4 on: May 13, 2021, 01:26:45 PM »
Hi,

Thanks again for your reply. I removed all exclusions and got the following messages:
(the messages are in Dutch)

1. Scanning the file:


Rough translation:

Suspicous file detected
OpenAsLocalHostDesktop.exe is being scanned to check if it's safe to open.
This only takes a few seconds.



2. After scanning is finishes:


Rough translation:
Good news! This file is safe
No hidden threats were found in OpenAsLocalHostDesktop.exe.



I tried to disable the Behavior Shield, but the on/off toggle was kind of faded, like it couldn't turn off. I then closed Avast and tried to start it again but it was unable to start (just like I explained in my reply from yesterday).

Offline r@vast

  • Avast team
  • Massive Poster
  • *
  • Posts: 2761
Re: Avast keeps suspending AutoHotKey scripts
« Reply #5 on: May 14, 2021, 12:55:06 PM »
Hi,

Thanks again for your reply. I removed all exclusions and got the following messages:
(the messages are in Dutch)

1. Scanning the file:

Rough translation:

Suspicous file detected
OpenAsLocalHostDesktop.exe is being scanned to check if it's safe to open.
This only takes a few seconds.



2. After scanning is finishes:

Rough translation:
Good news! This file is safe
No hidden threats were found in OpenAsLocalHostDesktop.exe.



I tried to disable the Behavior Shield, but the on/off toggle was kind of faded, like it couldn't turn off. I then closed Avast and tried to start it again but it was unable to start (just like I explained in my reply from yesterday).

Hi,
So even though cyber capture says it is safe, it is still being blocked?
Could you provide us with a support file, please?
1. In Avast Premium Security, go to Menu> Settings > General> Troubleshooting >  Logs (at the bottom) > Enable debug logging
2. Send Logs
3. Post the file id here.
(Support tool guide:https://support.avast.com/en-ww/article/Submit-support-file)

You can disable debug logging after the file has been generated.

Offline Sam B

  • Newbie
  • *
  • Posts: 8
Re: Avast keeps suspending AutoHotKey scripts
« Reply #6 on: May 14, 2021, 02:22:35 PM »
Hi again,

Sort of. Cyber Capture says it's safe and say's it's not blocked, but the process still gets suspended. It's like it gets suspended to optimize my PC (which I don't think is actually why it gets suspended).

My support file ID is 9N5WC.

I hope the file contains all the info you need. I enabled debug logging a while back, just in case I ran into some problems. It's been a day since my last test (and since Avast last froze/crashed) so I hope that's still included in the file.

Thanks again for the reply!

Offline RejZoR

  • Polymorphic Sheep
  • Serious Graphoman
  • *****
  • Posts: 9406
  • We are supersheep, resistance is futile!
    • RejZoR's Flock of Sheep
Re: Avast keeps suspending AutoHotKey scripts
« Reply #7 on: May 16, 2021, 08:51:46 AM »
It's real pain in the rear to develop things and use avast!. It's constant annoying scanning and constant IDP.ALEXA.53 detections on bunch of scripts is really annoying to a point I can't use it anymore.
Visit my webpage Angry Sheep Blog

Offline Sam B

  • Newbie
  • *
  • Posts: 8
Re: Avast keeps suspending AutoHotKey scripts
« Reply #8 on: May 18, 2021, 10:24:58 AM »
It's real pain in the rear to develop things and use avast!. It's constant annoying scanning and constant IDP.ALEXA.53 detections on bunch of scripts is really annoying to a point I can't use it anymore.

I relate. What has helped me massively was just adding an exception for a folder where 90% of my own programs will be. I study software development, and for one subject we have to use C# in Visual Studio, so I just added the folder for that subject to the exceptions list. It will ignore everything in that folder and won't scan/detect the files (including .exe's).

Offline Sam B

  • Newbie
  • *
  • Posts: 8
Re: Avast keeps suspending AutoHotKey scripts
« Reply #9 on: May 29, 2021, 03:33:36 PM »
Any updates, @r@vast?

Offline r@vast

  • Avast team
  • Massive Poster
  • *
  • Posts: 2761
Re: Avast keeps suspending AutoHotKey scripts
« Reply #10 on: June 01, 2021, 01:45:07 PM »

Offline aaronmorin54

  • Newbie
  • *
  • Posts: 1
Re: Avast keeps suspending AutoHotKey scripts
« Reply #11 on: October 24, 2021, 08:13:43 PM »
Still having this issue. Adding an exception not working.