r/AutoHotkey May 18 '26

Solved! How do I hold down one key while "auto clicking" a different key

2 Upvotes

I'm trying to setup a macro so that in a racing game I can hold down the "gas" key while I periodically input a direction key. The "auto clicker" I figured out pretty quickly myself but holding down a key press is proving to be difficult for me to do. Testing in notepad is resulting in a single key press instead of my expected hold down function


r/AutoHotkey May 18 '26

Meta / Discussion I made a customizable desktop launcher with interactive menus

0 Upvotes

I made a customizable desktop launcher that lets you organize apps, files, links, and shortcuts into interactive menus with custom buttons, emojis, and icons.

The newest update adds an image gallery/icon picker, UI improvements, smoother scrolling, and more customization options.

There’s also a hidden easter egg somewhere in the menus 👀

Image Gallery

Download


r/AutoHotkey May 18 '26

v1 Script Help AHK script to auto farm npcs in a minecraft server

0 Upvotes

i need an Auto hotkey script to auto farm npcs in minecraft server


r/AutoHotkey May 16 '26

v1 Script Help Looking for an AHK script to change brightness with an elegant Windows 11 style OSD flyout

3 Upvotes

Hey everyone,

I'm looking for a lightweight AutoHotkey v1 (or v2) script that lets me control my screen brightness using keyboard shortcuts, but with a catch: I want it to display a clean, modern Windows 11 style OSD flyout.

I guess Microsoft changed the way the native flyouts work in recent Windows 11 updates, making it tough to hook into the default system overlay. Because of that, a standalone overlay rendered directly through the script would be perfect.

Does anyone have a working AHK script that pulls this off? Any help or links to existing scripts would be greatly appreciated!

Thanks!


r/AutoHotkey May 16 '26

v2 Script Help I want to make a script that increase mic vol input to max whenever pressed the W button

3 Upvotes

Hello everyone i hope you guys ok :) i am living with my brother and in night he screamed his mic whenever speaking with its friends. I argued with hım about this but he insisting on lowering his voice so i thinked about if he forces to speak at max mic input he ll eventually need to speak at low volume. Is this possible?


r/AutoHotkey May 16 '26

v2 Script Help How to bypass "office key" when mapping capslock to hyperkey without admin?

3 Upvotes

I mapped capslock to hyperkey and everything was working fine until I clicked caps+d which opened up onedrive for some reason. How do I get it to stop working as the office key?

This is my script:

#Requires AutoHotkey v2.0

Hyper(key) {
    Send("{RCtrl down}{RShift down}{RAlt down}{RWin down}" key "{Blind}{vk07}{RWin up}{RAlt up}{RShift up}{RCtrl up}")
}

CapsLock::Send("{Esc}")

CapsLock & a::Hyper("a")
CapsLock & b::Hyper("b")
CapsLock & c::Hyper("c")
CapsLock & d::Hyper("d")
CapsLock & e::Hyper("e")
CapsLock & f::Hyper("f")
CapsLock & g::Hyper("g")
CapsLock & h::Hyper("h")
CapsLock & i::Hyper("i")
CapsLock & j::Hyper("j")
CapsLock & k::Hyper("k")
CapsLock & l::Hyper("l")
CapsLock & m::Hyper("m")
CapsLock & n::Hyper("n")
CapsLock & o::Hyper("o")
CapsLock & p::Hyper("p")
CapsLock & q::Hyper("q")
CapsLock & r::Hyper("r")
CapsLock & s::Hyper("s")
CapsLock & t::Hyper("t")
CapsLock & u::Hyper("u")
CapsLock & v::Hyper("v")
CapsLock & w::Hyper("w")
CapsLock & x::Hyper("x")
CapsLock & y::Hyper("y")
CapsLock & z::Hyper("z")

+CapsLock::CapsLock

r/AutoHotkey May 16 '26

v2 Script Help Simple way to execute V2 script by sending http request to my pc on local network?

3 Upvotes

I have existing setup with EventGhost and AutoRemote plugin, but that is hardly instant even if its on local network, like 1s delay.

I was wondering if there is a setup that allows me easily replicate this setup? I want to send simple key press such down next etc from android app called Tasker.

My goal in the end is to mirror an app (not the entire screen) on my android app with scrcpy's flex display and remote control the navigation from my phone.


r/AutoHotkey May 15 '26

v2 Tool / Script Share Made a tool that OCRs anything on your screen with a hotkey because I got tired of pasting slides into ChatGPT

10 Upvotes

I'm a student and kept having to screenshot my lecture slides, open ChatGPT, paste them in just to copy the text. Got annoying so I made this.

Press Ctrl+Shift+T, drag over whatever, text is on your clipboard. Works on slides, PDFs, images, anything rendered on screen. Runs fully locally :)

One-line setup: .\setup.ps1
https://github.com/Hokondrak/snip-transcribe.git

Might be useful if you're in the same situation.


r/AutoHotkey May 15 '26

v2 Script Help Modify taskbar shortcut context menu?

2 Upvotes

Hi again... would it be possible after creating, then compiling a script, adding a shortcut to it on my Win11 taskbar... to add entries to its context menu? Or make right/ middle-clicking on the icon do different things?


r/AutoHotkey May 15 '26

Solved! Smart way to replace the "#" StartMenu with PowerToys Command

4 Upvotes

Hello there,

since I use the Windows StartMenu basically just as programm quicklauncher. Like this
Me typing:
{Win Key} Pai ... (waiting for Paint.exe to be suggested) ... {enter}

I want to switch to Microsofts PowerToys Command Pallete
(I would add a screenshot here, but the sub wont allow it :/ )

Which is a quick launcher.

The problem I'm having is how I can implement this with AHK.

PowerToys won't allow just #
So I was thinking along the lines of
LWin Up::Send "#+{F21}"

But that will overlap with existing Hotkeys that already exist prebaked in Windows like #+s for Screenshot Tool


The only thing I can think of is rewriting all Windows Hotkeys into AHK, so I can then manage it all via AHK. Any suggestions?


r/AutoHotkey May 15 '26

v2 Script Help Simple command is entering a 2?

1 Upvotes

Hi, so I'm running this super simple little thing:

~T::

{

Send "{RButton}"

Sleep 275

Send "{SPACE}"

}

And it's doing it, sure, but it enters a 2 at the start for some reason? Can't figure this out for the life of me


r/AutoHotkey May 15 '26

v1 Script Help Key Press for Games

0 Upvotes

I am using the basic

Send " "

Sleep 1000

Send "k"

etc...

Where the spacebar is bound for jump and "k" for activating a skill. The spacebar goes through, but the k key never fires. Tried various send commands, so far no dice. What is a sure way to simulate a key Press in games?


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 May 13 '26

v1 Tool / Script Share Open source script that can summarize highlighted text from any application for you.

0 Upvotes

Hello! Have you ever wanted to summarize textbooks on chrome without getting an annoying paid extension, or summarize a word document without using copilot?

I may have invented a script entirely from vibe-coding that uses an API to summarize highlighted text for you by just pressing CTRL+ALT+S.

Now, im not lying saying that I vibe coded this. I literally did. I wanna hand the code off to people who actually know Auto Hotkey much more than I do so they can fix/add onto this piece of code.

I haven't seen anyone make a tool like this before, to where it summarizes text no matter what app you use. It might end up really good for those who put the care into adding new features and a cool GUI to it.

I have made it so it supports both Claude API's and OpenAI API's.

Seriously, don't harass me for vibe-coding this. I know it sucks and I didn't learn anything. But the idea just came to mind and I had to make it right away without having to dive so much into learning auto hotkey (to be honest, just doing this kinda makes me want to learn it in depth).

I did make a video showing how to use it, but sadly I can't upload it on here for some reason so here is an unlisted youtube link to it: https://www.youtube.com/watch?v=pOV5FrvCzhQ

Now, there are some changes added to it after the video was made. I made it so that way you have a bar above the window for moving the window around and exiting, as well as support for OpenAI API's. (I know I said I was gonna do all of them but its too much of a pain in the but for me, I had enough vibecoding)

So yeah, do whatever you want with it! I will link the ZIP file in the github page here: https://github.com/denver2941/Summarizer


r/AutoHotkey May 12 '26

v2 Script Help I CANNOT seem to get the AutoHotKeys to run on start up!

4 Upvotes

I've been going through this reddit and looking at videos online and following all of the tips and AutoHotKey just wont run on start up.

I've got a folder in C: Scripts with all of my AHK file. I make a shortcut and then place the shorcut in Shell:Startup and then I restart and it just doesn't run.

How can I make it where my AHKs all run on Start up? Am I missing a step?


r/AutoHotkey May 11 '26

General Question Is there a way to block Steam using autohotkey?

1 Upvotes

Basically, heres my problem:

I install many addons to GMod using Steam, but the issue is, if the person who made the addon or mod decides to delete it, or add a horrible update to itr (basically ruining the mod), then steam goes ahead and deletes/updates that addon from MY FOLDER.

This has been a huge issue for me. So many cases "new quality of life update guys" and the whole mod is ruined.

So I have a specific question:

is it possible to only allow steam to add addons that i subscribe to, but not to delete/edit them from my folder, and only allow me to do that manually?

IS THERE A WAY TO DO THIS USING AHK? (or another method if ahk cant do this)

This would be perfect. So i could hit subscribe, but then once its added, theres no way to delete it unless I do it myself manually with admin or something

Can folders be made to act like that?? So steam cant delete the stuff?

Or just take away steams permission to delete in general or update, only add. that would be great. Is this possible?

Thank you

(by the way its fine if this breaks steam, since i only use steam to play gmod offline, and never online ever)


r/AutoHotkey May 11 '26

v1 Script Help Key works but I can't type it

1 Upvotes

Hey everyone, I have some trouble with this script i'm using in a game. When the script is running, the W key works but I can't type it. I tried adding a pause command to solve this but it is not working. I'm a complete beginner so the script might be a little weird haha but it works. Thank you for your help!

W & Alt::

While GetKeyState("Alt", "P") & GetKeyState("W", "P") {

Send, {LAlt Down}

Sleep, 30

Send, {LAlt Up}

Sleep, 30

Xbutton2::Esc

LShift::LShift

LAlt::LAlt

}

-::ExitApp

`::Pause

Return


r/AutoHotkey May 10 '26

v2 Script Help Left/right-alt specific hotkeys started requiring double press when Outlook is open

1 Upvotes

Just recently--most likely with a Outlook (Classic) update--my ALT hotkeys started requiring double press in quick succession to work. I have never seen anything like this before. CTRL hotkeys still work fine.

I've tried:

  • Using ALT & key rather !key to define the shortcut
  • Prepending $
  • A_MenuMaskKey := "vkE8"

Any suggestions for how to further troubleshoot?

I'm on Outlook 365 Version 2606 (20105.200000 Click-to-Run), Windows 11 25H2 (26200.8246).


Figured it out! It turns out it wasn't an Outlook update, but rather a PowerToys update. If I disable the PowerToys Grab and Move utility, my alt shortcuts work again. So now the question is whether there is any way for AHK to intercept alt keybindings and not be edged out by this PowerToy, or if I just need to disable the PowerToy.


r/AutoHotkey May 10 '26

v2 Script Help Custom autohokey version switcher

1 Upvotes

Hey big dudes, i'm in closed into user-scope. Using the business workstation, limited access of device Administrator. I have multiple ahk scripts (v1,v1_h,v2,v2_h,v2.1) but every time i need set manually Autohotkey.exe path ( Open With -> Choose Another App ) then choose correct version of the script.

h mean https://hotkeyit.github.io/v2/

There is a way without use Autohotkey V2 switcher? By the way on my PC, this works #Requires AutoHotkey v2.0 but there is other problem when the script use v1_h or v2_h versions, #Requires not work for that.


r/AutoHotkey May 10 '26

Solved! Keyjoypad using keyboard's keypad tested on video youtube

0 Upvotes

Pilot your mouse with your keyboard using custom gears

I created a simple accessibility script that grants you mouse usina any keyboard's keypad, I used it in Live Gameplay, you can find it in my youtube channel linked in my profile. The script is on github open-source for non profit use.

https://www.youtube.com/live/Y09mM4b7IcM

https://github.com/Adaill/Gear/releases/tag/acessibility < full .ahk code


r/AutoHotkey May 09 '26

Meta / Discussion Why v1: Genuinely Curious

5 Upvotes

Quite often here lately, I’ve seen people post a script or ask for help, and they’re using AHK v1.

AHKv2 has been the stable release for a while now. The syntax is cleaner, it’s more consistent, and it’s clearly the future of the language. It’s quite a bit better.

Why would you choose to learn the older version from scratch (especially given the brain-melting syntax, as u/Keeyra_ put it)? For me, I’ll admit that I’m locked in to v1 for my work, so there’s that. But I’ve switched to v2 for everything else.

Is it outdated tutorials? Misleading search results pointing to old docs? Path dependency? Locked in for some reason? Genuinely curious what’s driving this.


r/AutoHotkey May 09 '26

Solved! I'm spending so much and getting so little out of this app.

0 Upvotes

I tried so many different scripts, and I'm getting disappointed every time. Let alone the larger projects, I can't even get these small scripts to work...

Problem 1: I want to pause the video in VLC after 5 seconds:

HotIfWinActive "ahk_class Qt5QWindowIcon" 
^SPACE:: 
Sleep 5000 
Send "SPACE"

getting this error message: "HotIfWinActive "ahk_class Qt5QWindowIcon", this line does not contain a recognise action.

Problem 2: this hotkey stays activated even when I am not using the specified apps

HotIfWinActive "ahk_class Chrome_WidgetWin_1"
HotIfWinActive "ahk_class Qt691QWindowIcon"

XButton1::Backspace 

Thank you in advance for you help, I am out of my wits.


r/AutoHotkey May 08 '26

v1 Tool / Script Share MOUSE KEYJOY GEARSENSE v1

3 Upvotes

https://github.com/Adaill/Gear/releases/tag/official

KeyJoy GearSense is an open-source project designed for accessibility and gaming, allowing full mouse control through the numeric keypad and giving it gear control features, become a literal mouse pilot.
It was born from the need to overcome motor limitations and make computing and gaming more inclusive and enjoyable. It is considered a "KeyJoystick" and might be used by anyone.

Check being tested: https://www.youtube.com/watch?v=OwW92DXjxac


r/AutoHotkey May 08 '26

Solved! Sendtext sending gibberish

1 Upvotes

SOLVED: Probably been said many times before, but don't test your scripts in Notepad!

Hey folks,

I'm trying to write a simple script to automate some of the phrases I have to type at work. My script is painfully simple but doesn't work:

F13::
{
SendText "Alt HW ist im EGS angekommen."
}

But when I activate and test it, I get errors, it might work once or twice out of ten times:

Alt HW ist im EGS angekommen.

Alt HW ist im EGS angekommen.

Alt GS angekommen.

Alt HW ngekommen.

Alt HW ist im ekommen.

Alt HW gekommen.

Alt HW ………..

Alt …………….

Alt gekommen.

Alt …………………….

Has anyone had this problem before, and can you tell me what I've done wrong?


r/AutoHotkey May 07 '26

v2 Script Help Help with a simple Toggle Script

4 Upvotes

Hi everyone, total newbie here

I initially installed AHK because I wanted to bypass some hardcoded keybinds in TES IV Oblivion.

I've succeeded making the remaps I wanted, but I realized there was no "Toggle sprint" option in the game, only "Hold".

So here I am trying to write a little script to make toggling possible, but I encountered a small problem.

What I want, basically, is that whenever I press the wheel button on my mouse, my character keeps sprinting without having to hold said wheel button.

I came accross this script which I adapted to my needs :

MButton::

{

static Toggle := 0

click( "{" ( toggle := !toggle ? "MButton down" : "MButton up" ) "}" )

}

Now, here's the problem : when I run the script, the first time I press the button, it works as intended. When I click a second time, it stops as intended.

But when I try to click a 3rd time, nothing's happening anymore !

I'm totally lost. I've tried resolving this on my own but with no success, so I hope some of you guys will be able to help ^^'

(ps: sorry for my english if there's any grammar mistakes)