Windows 10: How to Make Defender Exceptions for AutoHotKey Scripts

Discus and support How to Make Defender Exceptions for AutoHotKey Scripts in Windows 10 Gaming to solve the problem; How can I make Defender exceptions for AutoHotKey scripts *.ahk so that these are not disabled? They seem to worl initially, but then become disabled... Discussion in 'Windows 10 Gaming' started by willie x gluck, Jul 30, 2023.

  1. How to Make Defender Exceptions for AutoHotKey Scripts


    How can I make Defender exceptions for AutoHotKey scripts *.ahk so that these are not disabled? They seem to worl initially, but then become disabled at some later time.

    :)
     
    willie x gluck, Jul 30, 2023
    #1
  2. CK011885 Win User

    Need Help With Simple AutoHotKey Script

    Hi all, I'm trying to make a "simple" script but having some problems. I say "simple" because I've never done this before, but it's probably simple for someone more familiar. Basically, I want to make it where when I hold the right mouse button down, instead of right clicking it continuously Shift+Right Clicks (This is for a game).

    I came up with this:

    RButton::Send +{Click, Right}

    Which basically does what I want only I can't hold down the mouse button to continuously repeat the script. I'm not looking for anything automated, and would like to have it only do this while I hold the mouse button down, and stop when I let go.

    A friend of mine came up with this for me, which is almost perfect but for some reason in the game it causes the character to stutter step in between casts of the spell (Path of Exile). The character will cast the spell, stutter step forward, then cast again. The normal behavior in the game of holding Shift and casting a spell will keep you in place and not moving, which is what I'm looking for. He came up with this:

    #IfWinActive Path of Exile
    RButton::
    loop
    {
    GetKeyState, RButtonState, RButton, P
    if (RButtonState = "U") {
    send +{RButton up}
    break
    } else {
    send +{RButton down}
    sleep, 10
    }
    }
    #IfWinActive

    Is anyone here familiar with creating scripts/macros that can possibly tweak this to make it behave like I'd like it to? He suggested removing the sleep line, which I tried and it didn't change the behavior.

    Edit: Issue resolved, the following worked great:

    #IfWinActive Path of Exile
    *rbutton::Send {shift Down}{rbutton down}
    *rbutton Up::Send {shift Up}{rbutton up}
     
    CK011885, Jul 30, 2023
    #2
  3. AutoHotKey EXPERT needed for simple Task View script

    I'm sharing this trial and error for someone who reads this thread and wishes to duplicate your suggestion. The end of the story is that this worked beautifully. Getting there involved some know-how.

    1. Download/install AutoHotKey (AHK)
    2. Push 'create a script' even if you're clueless like me.
    3. It dumps a blank script on desktop. Name it 'Task View' (or whatever) and open it.
    4. It's not blank. It's full of intimidating 'stuff' to the non-coder. Ignore and exactly type in FrillyBit's code. SAVE.
    5. Test script without a reboot. Just try it. If it works --
    6. -- put that script in a folder somewhere that will be left alone. I put it in Documents. It's name "AutoHotKey scripts (KEEP!)" Keep keeps my feeble mind from forgetting what it is and trashing it a year from now.
    7. Create a shortcut of said script. Not the folder, the Task View script itself.
    8. Put it in startup folder. (Google how to put items in startup folder with 'HowToGeek' if confused.)
    9. Reboot. Test script.

    Again -- it worked like a charm for me. BIG THANKS.

    Be seeing you --


    How to Make Defender Exceptions for AutoHotKey Scripts ohotkey-expert-needed-simple-task-view-script-2017-05-15-14_51_00-2017-05-15-14_49_03-seeing-you.jpg
     
    The Pool Man, Jul 30, 2023
    #3
  4. How to Make Defender Exceptions for AutoHotKey Scripts

    Script to add Regkey Exception to Windows Defender

    If I want some kind of script to add an exclusion to Windows file defender, I can do something along these lines by saving the following text as a .bat file and running it:

    But what if I want to add, specifically, a registry entry exception to Windows defender in a similar manner, how would I acheive that? Is it even possible to add a registry entry as an exception to Windows defender?
     
    ereHsaWyhsipS, Jul 30, 2023
    #4
Thema:

How to Make Defender Exceptions for AutoHotKey Scripts

Loading...
  1. How to Make Defender Exceptions for AutoHotKey Scripts - Similar Threads - Defender Exceptions AutoHotKey

  2. Autohotkey

    in Windows 10 Gaming
    Autohotkey: I have a very simple autohotkey that works on Computer A Windows 11 but does not work on Computer B also Windows 11.I have no idea how it could work one time and not the other when it is the same on both computers::^+1::Table 1So, when I hit CNTL+SHIFT+1 I expect to generate:...
  3. Autohotkey

    in Windows 10 Software and Apps
    Autohotkey: I have a very simple autohotkey that works on Computer A Windows 11 but does not work on Computer B also Windows 11.I have no idea how it could work one time and not the other when it is the same on both computers::^+1::Table 1So, when I hit CNTL+SHIFT+1 I expect to generate:...
  4. Is Autohotkey A Virus?

    in Windows 10 Gaming
    Is Autohotkey A Virus?: all my friends claim that this soft ware is safe but i tested it on mutiple anti viruses and tria.ge and they both said it was a trojan, so can you please tell me if this is safe or not? Thank you...
  5. Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?

    in Windows 10 Gaming
    Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?: Hi all So I have been trying to set up Task Scheduler to run an Autohotkey .ahk script that toggles to Monochrome mode by sending Windows+Control+C. However the task that I have created does not seem to run the script. I have run the script manually by double clicking and it...
  6. Unhandled exception in script

    in Windows 10 Gaming
    Unhandled exception in script: I receive this error every time i turn on my pc and it disconnects me from the Wi-Fi I use the most recently updated windows 11.Failed to excecute script 'main' due to unhandled exception: HTTPSConnectionPoolhost=api.mixpanel.com'port=443;Max retries exceeded with url;/track...
  7. Unhandled exception in script

    in Windows 10 Software and Apps
    Unhandled exception in script: I receive this error every time i turn on my pc and it disconnects me from the Wi-Fi I use the most recently updated windows 11.Failed to excecute script 'main' due to unhandled exception: HTTPSConnectionPoolhost=api.mixpanel.com'port=443;Max retries exceeded with url;/track...
  8. How to Make Defender Exceptions for AutoHotKey Scripts

    in Windows 10 Software and Apps
    How to Make Defender Exceptions for AutoHotKey Scripts: How can I make Defender exceptions for AutoHotKey scripts *.ahk so that these are not disabled? They seem to worl initially, but then become disabled at some later time....
  9. How to Make Defender Exceptions for AutoHotKey Scripts

    in AntiVirus, Firewalls and System Security
    How to Make Defender Exceptions for AutoHotKey Scripts: How can I make Defender exceptions for AutoHotKey scripts *.ahk so that these are not disabled? They seem to worl initially, but then become disabled at some later time....
  10. AutoHotKey EXPERT needed for simple Task View script

    in Windows 10 Support
    AutoHotKey EXPERT needed for simple Task View script: Greetings. I'm a Mac to PC convert and starting to love it. But there are a few things I need to make life a little easier. The need of this thread has already been discussed here -- Alternative way to launch Task View ? Solved - Windows 10 Forums The solution I'm...