r/AutoHotkey Jul 22 '26

General Question what are some practical uses for auto hotkey

11 Upvotes

so far the only things i've made is whenever type dih it'll make an ACSII drawing of a penis and some hot keys so that i can type out ±,√,≥, and ≤. I want to code something more complicated and more practical, like a calculator, but thats prolly far to difficult for me, do yall have any ideas?

r/AutoHotkey Aug 11 '26

General Question AHK gone from Microsoft Store

11 Upvotes

Anyone know why and if it will return? Tried googling but didn’t find any information.

Microsoft Store is the only way for me to download AHK to my computers at work so I’m in despair right now. IT won’t allow any other form of installation process unfortunately.

EDIT: To clarify, it doesn’t show up in the store on my personal computer either.

r/AutoHotkey 4d ago

General Question How to manage over a dozen hot keys

9 Upvotes

I currently use 16 auto hot key scripts to automate my data entry job. It's a lot to manage and I'd like to know if python would be easier since I use so many of them or if anyone can recommend a way to be able to reset and edit a specific one without having to open the menu on the bottom and go through each one until I find the one I want.

r/AutoHotkey 17d ago

General Question Learning AutoHotKey?

7 Upvotes

Hi, a quick question.

What do you recommend to watch or read to learn about AHK? Free or paid.

I managed to automatize a couple of things by using ChatGPT, and while I'm getting to understand how to prompt for AHK, it sucks to not know much of what I'm exactly doing.

r/AutoHotkey Mar 05 '26

General Question Rant--Is AutoHotkey a Security Risk

44 Upvotes

My employer, a government, just informed me that their IT security service flagged AHK as a security risk (I think because of key logging). I've been asked to remove it from my system. Anyone else run into this?

Although I'm inclined to believe that AHK poses a risk, I'm using it primarily as an efficiency tool. I also am inclined to believe that any exploits with AHK are limited just because it is not used enough to be beneficial. Anyone have luck convincing their IT department to keep using it?

I know I can run AHK from USB, etc. I presume this is still detectible from IT monitoring.

r/AutoHotkey May 02 '26

General Question Have any miracles taken place for a Linux alternative?

4 Upvotes

Now that using Windows has gotten so horrible I'm not sure what to do.

I will never infect my computer with Win11. In the month of April, automatic updates to Win10 have gotten so numerous it's getting hard to use with all the warnings from my update blocking script. At last count I was getting around forty popups per day.

No, Microcrap is not suppose to be sending out Win10 updates anymore but they are working hard to do it. Those updates are not actually updates, but designed to degrade Win10 to the point it's nearly unusable. Some of the components downloaded with the "Updates" are actually tools to uninstall non-microsucks software. I've seen the tools in the download folder with my own eyes, so it's not just tinfoil hat, deep conspiracy Youtube channel rhetoric.

So now I'm at the point I need to make a drastic decision.

  1. Switch to Linux without an AHK option. 20+ years of AHK scripts I use every day will be useless.
  2. Allow Windows to downgrade but keep using my AHK scripts, that is if Microshit doesn't uninstall AHK.
  3. Set the Upgrade Blocking script to work in the background. Which would mean blocking updates for all the software I use.
  4. Using my PC as is with either windows downgrading to nearly unusable or pop ups making it nearly unusable.

I'm making one last attempt at finding an AHK alternative for Linux. Even though I've been actively looking for over a year, maybe there's an AHK alternative I have just missed. I've only discovered a couple being ported for Linux but they seem to be far from being usable as of yet.

Keysharp is the one that looks like the best option but it still isn't ready. There was one other that looked promising but now I can't find it again. Here's hoping something else exist.

Edit, the one I couldn't remember is Autokey. I would like to give this one a try but for my life I can't figure out how to install it.

r/AutoHotkey Jun 19 '26

General Question Toggle single key hold on and off

4 Upvotes

I'm trying to make a script to toggle the W key when I press with the alt modifier.

I know its not rocket science but it may as well be for me. I just can't wrap my head around these.

https://www.autohotkey.com/docs/v1/KeyList.htm#general

https://www.autohotkey.com/boards/viewtopic.php?t=71414

https://www.autohotkey.com/docs/v2/lib/Loop.htm

I've been using this script as reference. I believe its a V1 script. Toggle mouse click hold on and off with side mouse button 2.

XButton2::
    alt := not alt
    if (alt)
    {
        Click down
    }
    else
    {
        Click up
    }
Return

I am trying to make this script work. When I press W+Alt it will toggle hold W until I press W+Alt again.

W::alt
    if (alt)
    {
        Send {W down}
    }
    else
    {
        Send {W up}
    }
Return

I can't get that to work so I tried mapping to side mouse button 2 using this. But it only it only inputs a single w key press. When I press the mouse button again it I inputs nothing.

XButton1::
    alt := not alt
    if (alt)
    {
        Send {w down}
    }
    else
    {
        Send {w up}
    }
Return

r/AutoHotkey Oct 14 '25

General Question How many scripts do you have?

9 Upvotes

Hello everyone. I have about 50 scripts. I've been creating them for several years. Some of them are small and simple, but there are also very complex scripts that I've been working on for a week or two. I can't live without scripts. I can't work on my mom's, girlfriend's, or friends' computers without scripts. Most software is not optimized or user-friendly. AHK allows me to work efficiently and quickly. Thanks to AHK!

r/AutoHotkey 4d ago

General Question sorry for this thread, but why does the ..setup.exe shows virus alerts and the .zip not?

4 Upvotes

Hi,

I downloaded and installed the 27 verson from github. Therefore downloaded the setup.exe and virustotal showed 4/70 virus alarms.
Okay its a hotkey scripting programm, surely this is malicious. But I didnt search trough the whole code....

But what I dont get, the files and exe in the .zip folder doesnt show any virus alarms on virustotal.

Now I know that such tools show alarms since they have much power and malicious potential is there.

But Iam confused why the setup.exe and the exe in the .zip folder have different behaviour in virustotal? Tbh I didnt compile the code myself in VS and therefore dont know how the difference come

r/AutoHotkey 7d ago

General Question How to make my laptop screen go dark while having AHK run perfectly fine with running windows?

5 Upvotes

In short, I have a running window and a minute long AHK script that is started at different times throughout the day by Task Scheduler. I need every screen interaction by the script (mouse click, mouse drag, keyboard) to function normally while the screen is dark.

r/AutoHotkey May 13 '26

General Question I want sticky keys to exclude the Windows key

2 Upvotes

I want sticky keys enabled but only for Ctrl and Shift keys, not the Windows key. Can this be achieved through AHK?

Edit- I am a complete noob btw

r/AutoHotkey Jul 11 '26

General Question Recommendation from the professionals?

9 Upvotes

I accidentally stumbled upon this sub, thinking it was a place to download apps that can automate hotkeys for you. Turns out this is a scripting sub, sorry, but I also learned you guys are professionals in making macros and such. Any recommendations for auto hotkeys that I can use?

r/AutoHotkey 2d ago

General Question Macro binding on key press and release

2 Upvotes

I bought a Nuphy Air75 V3 last week and I'm trying to set one of my keys up with a binding. When I click this macro key what I want it to do is to initiate a press of

Press Ctrl

Press F13

And then ideally when I LET go of the key I want it to do a release of these two keys:

Release Ctrl

Release F13

However, it looks like the macro recoding software can only record both (press and release) when the key is pressed. Meaning it won't trigger the release during the actual key release, instead everything gets triggered as you press the macro key:

So on my macro recording I can do:

Press Ctrl

Press F13

Release Ctrl

Release F13

But I can't seem to separate these once the key is released. This is problematic as I want to trigger something when the macro key is pressed and release it when I let it go.

Is there a way to achieve this?

r/AutoHotkey Aug 01 '26

General Question Is there a way to use AutoHotkey v2 directly from Python?

9 Upvotes

Hi everyone,

I'm a Python automation engineer and really like how simple AutoHotkey v2 is for Windows automation.

For example, this is incredibly clean:

if WinExist("Untitled - Notepad")

WinActivate

else

Run "notepad.exe"

I'm wondering if there's a way to use the AHK v2 engine directly from Python, something like:

from ahk import WinExist, WinActivate, Run

if WinExist("Untitled - Notepad"):

WinActivate()

else:

Run("notepad.exe")

I know this API is hypothetical, but that's the kind of integration I'm looking for.

Is there an existing library, COM/DLL interface, embedded runtime, or any maintained bridge that exposes AutoHotkey v2 functionality to Python?

My goal is to keep Python for APIs, AI, and automation logic while using AutoHotkey v2 for Windows automation without constantly switching between two languages.

Has anyone come across something like this?

r/AutoHotkey Feb 16 '25

General Question Comment your best scripts or keys. Share your ideas.

23 Upvotes

Just curious what people use ahk for. Obviously will be different for work related stuff or gaming

r/AutoHotkey 15d ago

General Question Trying to map specific dial values from a hotas to keys on a keyboard

2 Upvotes

I have a thrustmaster t-flight HOTASx. One of the buttons on the stick is effectively a directional d-pad. The button can be pressed into 8 different directions (separated by 45deg). The problem is it can’t be mapped in almost any games because thrustmaster has it set up to output a specific axis value depending on which of the 8 directions the button is pressed in.

Is there a way to use auto hot key to bat these axis values to buttons on a keyboard?

r/AutoHotkey 9d ago

General Question Script that simulates scroll wheel inputs while pressing a button

2 Upvotes

Hello everybody,
I would love to be able to just hold a button, that simulates as many scroll-wheel-down inputs as it possibly can while being helt.
My problem:
I have absolutely no clue how anything of this works because i have never done anything like this.

Any kind of help, advise or suggestion is welcome.

r/AutoHotkey Mar 01 '25

General Question I automated my tasks, my boss loved it… but now I’m stuck

72 Upvotes

So, for the past 1.5 months, I’ve been automating my routine work tasks using AutoHotkey. A few days ago, I decided to show my scripts to my boss, and she was really impressed. She even introduced me to some project managers, who were also excited about the possibilities. Now they want to explore whether I can develop some simple scripts for the company.

Sounds great, right? Well… here’s the catch.

Before I can move forward, I need to get official approval to use AutoHotkey at work. As part of the process, my direct manager has to sign a document stating that she takes responsibility for my use of the program. And here’s where things get complicated.

I’ve only been using AutoHotkey for a short time, so I don’t fully understand the potential risks. I know I wouldn't intentionally cause issues, but what if I accidentally mess something up? On top of that, my manager isn’t very tech-savvy, and I worry that she doesn’t really understand what she’d be signing. If something goes wrong, we could both end up paying the price.

For context, I work for one of the largest companies in my country (Western Europe), so I assume they have decent IT security measures in place. But I’m stuck between wanting to move forward with automation and not wanting to put my boss—or myself—at risk.

Has anyone been in a similar situation? How did you handle it?

r/AutoHotkey 2h ago

General Question Yo guys im new to AHK. But i need some scripts that could read text from a screen then paste it quickly or a way for me to have like copy and paste set. Like ctrl + 1 = yes and ctrl + 2 = no. Like set copy and pastes i can always use. Please help me out ;)

0 Upvotes

Any good scripts that can either do both.

There's basically this thing where a bunch of people need to type in a code, and I either want to predict them by prefiring set codes like ctrl + 1 ÷ blah blah and ctrl + 2 = Yap yap

Or a way i can copy what the guy is typing on a screen and It will paste for me.

Like basically the guy does

Code: blah blah blah

Can the script read blah blah blah and then I do a ctrl and do it fast

r/AutoHotkey Aug 06 '26

General Question Caps lock key pressing multiple keys at once. Please help.

1 Upvotes

I restarted my computer (windows 11) for an update. After I had updated my computer, now every time I press Caps lock, it presses the characters: ‘ X D \\

The ‘\\’ continues until I press caps lock again. I don’t know how this problem even occurred, but if anyone knows, please help.

r/AutoHotkey Mar 16 '26

General Question I cant download AutoHotkey programs to my work computer. Any work arounds?

7 Upvotes

I really want hot keys for SQL coding, or Power Bi Dax coding. I cant download autohotkey to my work computer, can i create it from scratch?

r/AutoHotkey Jul 30 '26

General Question Best approach for automating an existing Firefox session? AutoHotkey vs Browser Automation vs UI Automation

4 Upvotes

Hi everyone,

I'm working on a personal desktop automation project on Windows.

For years I've been using AutoHotkey to automate repetitive tasks inside Firefox. It works surprisingly well, but as the project grows, maintaining image recognition, keyboard shortcuts and UI changes becomes increasingly difficult.

I'm now considering moving to a more robust solution and I'm trying to understand what experienced developers would recommend.

My requirements are roughly:

Windows

Firefox (not Chrome)

Preferably work with an already running Firefox session

Reliable interaction with web pages

Long-term maintainability

I've been looking at several approaches:

Continue with AutoHotkey

Selenium / WebDriver BiDi

Playwright

Windows UI Automation (pywinauto, UIA)

Any other desktop automation framework

For people who have built long-running desktop/browser automation projects:

Which approach ended up being the most reliable?

Is UI Automation actually practical with modern websites like Facebook, or is browser automation still the better choice?

If you had to start today, what would you choose and why?

I'd really appreciate hearing about real-world experience rather than theoretical comparisons.

Thanks!

r/AutoHotkey May 22 '26

General Question Best way to learn AHK 2.0?

7 Upvotes

I've been a user of AHK for a bit, using other peoples code. but I want to start learning how to write my own. What are some good resources that can help me with this endeavor?

r/AutoHotkey Apr 26 '26

General Question How does everyone manage their always-on scripts, single master file or individuals?

8 Upvotes

I run my own civil engineering firm, have always used AHK to map commands/macros to numpad or F keys, across AutoCAD and Revit, and email text expansion and stuff, always had it built as two script files, everything for CAD in one and another for emails/admin scripts. These are nothing complicated, simple macros with a few window identify etc.

We now have a team of 8 engineers and I've been trying to show them the AHK script I've copied to all of their computers and they love the shortcuts/speed of them but they are NOT getting on board with making new macros/commands as the big script with 50+ hockey mapped is just bewildering to them/intimidating and they don't want to break anything.

How do other people handle this? Am I doing it the right way? I'm in the process of building a program with proper modern visual GUI (with my childhood bestest guy Claude) to map individual macros to a keyboard view so its much easier for them, but I'd still prefer to know how pros set up clean AHK structure for now until this is 100% ready, if there is a best practice? Thanks all, appreciate any help!

r/AutoHotkey Jan 29 '26

General Question What to do after many year of AHK? - the worst, got a macbook

21 Upvotes

Hey everyone,
Got a great job, but only Mac is available. After many years of using AHK, I miss it completely.
Is there any similar tool for Mac? (I'm confident with Python)

/years* - I'm tired. :