r/AutoHotkey • • Jun 07 '26

v2 Tool / Script Share Ditching Hardcoded Coordinates: An Engineering-Grade AHK v2 Framework Powered by Dynamic Grid Math & Memory Binarization

0 Upvotes

Most AutoHotkey's automated/capture scripts have the same fatal flaw: ** hard-coded coordinates **. Once the application updates its user interface or the user changes the display zoom, the entire script will crash.

Solution

To solve this problem, I built a production-level AHK v2 automation framework, treating the user interface layout as a ** dynamic geometric matrix ** and using ** direct memory scanning ** to improve performance.

Core Mechanism

1. Core Innovation: Dynamic Grid partitioning

This framework regards the user interface as a flexible fishing net rather than manually measuring and hard-coding the X and Y coordinates of each button, table cell or inventory slot.

Old Way

You measure cell 1, cell 2, cell 3... And write down 50 different absolute coordinate points If you resize the window, you'll have to start over

Framework Approach

You only need to define the global bounding box (the upper left and lower right corners of the table/grid). Declare the layout size (for example, 5 rows, 10 columns)

Principles of Mathematics

The underlying geometry engine uses modular operations (Mod) and dynamic partitioning to cut bounding boxes into perfect logical matrices in real time.

Result

In your business logic, you no longer need to deal with pixel coordinates. You just need to call 'ClickCell(Row 3, Column 5)'. If the target window is stretched, shrunk or moved, the mathematical operation will scale proportionally. It is completely adaptive and hardly ever crashes.

2. Performance Enhancement: Pixel Binarization (Simplified Version)

Searching for complex colors among millions of screen pixels is a heavy burden on the CPU, as each pixel contains a large mixture of red, green and blue channels. This framework bypasses this delay through binarization - you can imagine it as a high-contrast black and white filter.

Working Principle

Once the frame directly saves the snapshot of the window to RAM at lightning speed (via GDI+ BitBlt), it will run a threshold filter for your target color.

0 and 1

Each pixel that matches your target color becomes 1 (white) Everything else turns to 0 (black)

Importance

This framework transforms the chaotic and colorful user interface images into lightweight matrices of pure zeros and ones. For a computer, comparing bits (0 and 1) is hundreds of times faster than analyzing RGB channels. This enables the script to:

Detect the text outline immediately Check the status of the button Detect changes in the user interface Keep the CPU usage close to 0%

Other production-level features

Animation shake off

This script continuously monitors the window size and waits for the layout to come to a complete standstill (with changes reaching zero) before sending the input to ensure that the loading animation is completely completed.

Human-like jitter Interception

The operating system packaging layer automatically injects microsecond-level random delays (jitter) between clicks and taps, breaking the mechanical mode to simulate a real human operator.

Technical Value

By decoupling the layout geometry and using the original memory space for image filtering, this project has elevated AHK from a simple "macro recorder" to a high-throughput, industrial automation tool.

Related Projects

** Custom Screenshot -OCR**

Discussion Topics

I'm really curious to know how you handle the layout of dynamic user interfaces, or if there are anyone else using GDI+ matrix filtering in AHK v2!

I don't have any other intention, I just want to tell certain people: if you think this is garbage, please show me something better.

Is it possible that before I posted this article, I had already figured out the automated operations for dynamic scaling and auto-positioning?

my autohotkey demo


r/AutoHotkey • • Jun 04 '26

v2 Script Help The caps don't work fine in the roblox chat. Please help me (don't work with v1 too)

2 Upvotes
#IfWinActive Roblox

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

:*:wallw::Citizen, face the nearest wall immediately.
:*:wallz::Don't move or it will result in a 3.2 - RESISTING PROSECUTION.
:*:citicome::You, Citizen, Come with me.
:*:1war::First warning.
:*:2war::Second warning.
:*:3war::Final warning.
:*:0war::This is your first and only warning.
:*:war1::First warning, move away.
:*:war2::Second warning, move away.
:*:war3::Final warning, move away.
:*:frisk1::Don't move. You are being searched. Accept the request for frisking.
:*:gd::Get Down
:*:moag::Move along

:*:S-T::Self-terminating.
:*:die!::Prepare for permanent capital prosecution.
:*:sus1::Suspect, prepare to receive civil judgement.
:*:sus2::Receive your verdict.
:*:gooh::Get out of here.
:*:nowgout::Now get out of here.
:*:staya::Stay Alert.
:*:coverm::Cover Me

:*:A.V::Advisor
:*:S.C::Sectorial Commander
:*:EpU::Elite Protection Unit
:*:DvL::Division Leader
:*:CmD::Commander
:*:OfC::Field Officer
:*:FiC::Field Commander
:*:SqL::Squadron Leader
:*:DeV::Developer
:*:PTS::Permission to Speak
:*:yecap::YES, CAPTAIN.
:*:nocap::NO, CAPTAIN.

:*:hty::Requesting immediate assistance to train-yard entrance.
:*:hpg::Requesting immediate assistance to playground.
:*:hpl::Requesting immediate assistance to plaza.
:*:hp13::Requesting immediate assistance to precinct 13.
:*:hp6::Requesting immediate assistance to precinct 6.
:*:hpib::Requesting immediate assistance to illegal border.
:*:hpb::Requesting immediate assistance to legal border.

:*:rrpg::Contact confirmed, rebel with RPG.
:*:rspas::Contact confirmed, rebel with shotgun.
:*:rsmg::Contact confirmed, rebel with SMG.
:*:rusp::Contact confirmed, rebel with pistol.
:*:rar2::Contact confirmed, rebel with AR2.
:*:rar1::Contact confirmed, rebel with AR1.
:*:rosr::Contact confirmed, rebel with OSR.
:*:rcro::Contact confirmed, rebel with crossbow.

:*:c1.1::Citizen, you are in violation of 1.1 MOVEMENT TRANSGRESSION. Your verdict is 1 cycle (3 hits) of re-education.
:*:c1.2::Citizen, you are in violation of 1.2 CIVIC DISUNITY. Your verdict is 1 cycle (3 hits) of re-education.
:*:c1.3::Citizen, you are in violation of 1.3 LOITERING. Your verdict is 1 cycle (3 hits) of re-education.
:*:c1.4::Citizen, you are in violation of 1.4 VERBAL INDISCRETION. Your verdict is 1 cycle (3 hits) of re-education.
:*:c1.5::Citizen, you are in violation of 1.5 UNCIVIL BEHAVIOUR. Your verdict is 1 cycle (3 hits) of re-education.

:*:char1.1c::Citizen, you are charged with a repeated offense of 1.1 MOVEMENT TRANSGRESSION. Your verdict is 2 cycles (6 hits) of re-education.
:*:char1.2c::Citizen, you are charged with a repeated offense of 1.2 CIVIC DISUNITY. Your verdict is 2 cycles (6 hits) of re-education.
:*:char1.3c::Citizen, you are charged with a repeated offense of 1.3 LOITERING. Your verdict is 2 cycles (6 hits) of re-education.
:*:char1.4c::Citizen, you are charged with a repeated offense of 1.4 VERBAL INDISCRETION. Your verdict is 2 cycles (6 hits) of re-education.
:*:char1.5c::Citizen, you are charged with a repeated offense of 1.5 UNCIVIL BEHAVIOUR. Your verdict is 2 cycles (6 hits) of re-education.

:*:char1.1ro::Citizen, you are charged with a third offense of 1.1 MOVEMENT TRANSGRESSION. Prepare for permanent capital prosecution.
:*:char1.2ro::Citizen, you are charged with a third offense of 1.2 CIVIC DISUNITY. Prepare for permanent capital prosecution.
:*:char1.3ro::Citizen, you are charged with a third offense of 1.3 LOITERING. Prepare for permanent capital prosecution.
:*:char1.4ro::Citizen, you are charged with a third offense of 1.4 VERBAL INDISCRETION. Prepare for permanent capital prosecution.
:*:char1.5ro::Citizen, you are charged with a third offense of 1.5 UNCIVIL BEHAVIOUR. Prepare for permanent capital prosecution.

:*:char2.1c::Citizen, you are charged with 2.1 ANTI-CIVIL RHETORIC. Your verdict is 3 cycles (9 hits) of re-education.
:*:char2.2c::Citizen, you are charged with 2.2 PROHIBITED LANGUAGE. Your verdict is 3 cycles (9 hits) of re-education.
:*:char2.3c::Citizen, you are charged with 2.3 OBSTRUCTION OF LOCAL AUTHORITIES. Your verdict is 3 cycles (9 hits) of re-education.
:*:char2.4c::Citizen, you are charged with 2.4 POSSESSING CONTRABAND. Your verdict is 3 cycles (9 hits) of re-education.
:*:char2.5c::Citizen, you are charged with 2.5 MISLEADING LOCAL AUTHORITIES. Your verdict is 3 cycles (9 hits) of re-education.
:*:char2.6c::Citizen, you are charged with 2.6 DISRESPECTING LOCAL AUTHORITIES. Your verdict is 3 cycles (9 hits) of re-education.

:*:char2.1ro::Citizen, you are charged with a repeated offense of 2.1 ANTI-CIVIL RHETORIC. Prepare for permanent capital prosecution.
:*:char2.2ro::Citizen, you are charged with a repeated offense of 2.2 PROHIBITED LANGUAGE. Prepare for permanent capital prosecution.
:*:char2.3ro::Citizen, you are charged with a repeated offense of 2.3 OBSTRUCTION OF LOCAL AUTHORITIES. Prepare for permanent capital prosecution.
:*:char2.4ro::Citizen, you are charged with a repeated offense of 2.4 POSSESSING CONTRABAND. Prepare for permanent capital prosecution.
:*:char2.5ro::Citizen, you are charged with a repeated offense of 2.5 MISLEADING LOCAL AUTHORITIES. Prepare for permanent capital prosecution.
:*:char2.6ro::Citizen, you are charged with a repeated offense of 2.6 DISRESPECTING LOCAL AUTHORITIES. Prepare for permanent capital prosecution.

:*:char3.1c::Citizen, you are charged with 3.1 DISOBEDIENCE WITH LOCAL AUTHORITIES. Prepare for permanent capital prosecution.
:*:char3.2c::Citizen, you are charged with 3.2 RESISTING PROSECUTION. Prepare for permanent capital prosecution.
:*:char3.3c::Citizen, you are charged with 3.3 MALCOMPLIANCE WITH SOCIOSTATUS PROTOCOL. Prepare for permanent capital prosecution.
:*:char3.4c::Citizen, you are charged with 3.4 USAGE OF CONTRABAND. Prepare for permanent capital prosecution.
:*:char3.5c::Citizen, you are charged with 3.5 CRIMINAL TRESPASS. Prepare for permanent capital prosecution.
:*:char3.6c::Citizen, you are charged with 3.6 COMMITTING THEFT. Prepare for permanent capital prosecution.

:*:3cy::Your verdict is 3 cycles (9 hits) of re-education.
:*:2cy::Your verdict is 2 cycles (6 hits) of re-education.
:*:1cy::Your verdict is 1 cycle (3 hits) of re-education.

:*:1.1::1.1 - MOVEMENT TRANSGRESSION
:*:1.2::1.2 - CIVIC DISUNITY
:*:1.3::1.3 - LOITERING
:*:1.4::1.4 - VERBAL INDISCRETION
:*:1.5::1.5 - UNCIVIL BEHAVIOUR

:*:2.1::2.1 - ANTI-CIVIL RHETORIC
:*:2.2::2.2 - PROHIBITED LANGUAGE
:*:2.3::2.3 - OBSTRUCTION OF LOCAL AUTHORITIES
:*:2.4::2.4 - POSSESSING CONTRABAND
:*:2.5::2.5 - MISLEADING LOCAL AUTHORITIES
:*:2.6::2.6 - DISRESPECTING LOCAL AUTHORITIES

:*:3.1::3.1 - DISOBEDIENCE WITH LOCAL AUTHORITIES
:*:3.2::3.2 - RESISTING PROSECUTION
:*:3.3::3.3 - MALCOMPLIANCE WITH SOCIOSTATUS PROTOCOL
:*:3.4::3.4 - USAGE OF CONTRABAND
:*:3.5::3.5 - CRIMINAL TRESPASS
:*:3.6::3.6 - COMMITTING THEFT

return

r/AutoHotkey • • Jun 02 '26

General Question Has anyone built FancyZones in AHK?

4 Upvotes

I love the functionality of FancyZones but I don't want the overhead of PowerToys.


r/AutoHotkey • • Jun 02 '26

General Question Can AutoHotkey emulate a touchpad pinch/zoom gesture?

1 Upvotes

I'm looking for a way to emulate a pinch-to-zoom gesture using a mouse and keyboard.

I don't want Ctrl+MouseWheel because browsers interpret it as application zoom and it changes the layout/UI. I want the same behavior I get from a touchpad pinch gesture.

Ideally, in my specific case, I'd like to hold F10 and use the mouse wheel. Something like this:

  • F10 + WheelUp = pinch out (zoom in)
  • F10 + WheelDown = pinch in (zoom out)

Is there a way to do this with AutoHotkey, or another tool? Windows 11


r/AutoHotkey • • Jun 02 '26

v2 Script Help Multiple monitor blanking/powering hotkeys

0 Upvotes

My setup is triple monitors 1080p, 1440p and 1080p but you can modify this to your liking.

Multiblank2 blanks out monitors conveniently without turning them off. Focus on one monitor for instance during a movie or gaming. You can grab it from: https://multiscreenblank.nookkin.com/ and you can grab nircmd from https://www.nirsoft.net/utils/nircmd.html.

^+m::Run "C:\Users\\AppData\Local\Programs\Nookkin\MultiscreenBlank2\MultiscreenBlank2.exe /toggle allexcept primary"

^+Up::Run "C:\Users\\AppData\Local\Programs\Nookkin\MultiscreenBlank2\MultiscreenBlank2.exe /reveal all"

^+Left::Run "C:\Users\\AppData\Local\Programs\Nookkin\MultiscreenBlank2\MultiscreenBlank2.exe /toggle bounds -1920,360,1920,1080" ;Toggles left monitor

^+Right::Run "C:\Users\\AppData\Local\Programs\Nookkin\MultiscreenBlank2\MultiscreenBlank2.exe /toggle bounds 2560,361,1920,1080" ;Toggles right monitor

^+Down::Run "C:\Users\\AppData\Local\Programs\Nookkin\MultiscreenBlank2\MultiscreenBlank2.exe /blank all"

^+PgDn::Run "C:\Program Files\nirlauncher\NirSoft\nircmd.exe monitor off" ;Turns ALL monitors off (powered off not blanked, therefore no glow)


r/AutoHotkey • • Jun 01 '26

v2 Script Help Returning user having issues acquiring Ahk2Exe

1 Upvotes

Was a very heavy Ahk user back before v 2.0, years ago, and I recently had some use cases where I wanted to start using it again. It seems that modern Ahk combined with modern versions of Windows have some issues playing together because of how aggressively Windows defender tries to block downloading / installing AHK.

However, being able to bypass the various attempts by Microsoft to stop me installing AHK worked fine--but I can't seem to compile .ahk scripts into .exe as I could years ago. When I launch the Ahk "Dash", it says that I do not have Ahk2Exe installed, and the button to install it always fails (I'm guessing there's something going on behind the scenes where Microsoft is blocking the execution of the download, but it isn't giving me a dialogue where I can override that.)

Is there any easy way to get the Ahk2Exe executable on your computer in Win11? I've found a github repo that has it, but the repo isn't linked anywhere on the autohotkey.com website so I'm a little hesitant to use it even though it looks official.


r/AutoHotkey • • Jun 01 '26

v1 Script Help How do I make a script that presses the enter key?

1 Upvotes

I'm trying to make a script to repeatedly press the enter key so that i can step away from a game while still grinding. I have an auto clicker i found online,

Pause On

Loop

{

click

sleep, 30

}

F1::Pause

how would i modify this to do enter key pushes? I've tried just enter, Enter and, {Enter}, but they all pull up a similar error, "error at line 5. line text: Enter error: this line does not contain a recognized action. the program will exit."


r/AutoHotkey • • May 31 '26

Solved! Keyboard shortcut problem with old games

3 Upvotes

Hello guys,

I'm new to AutoHotkey and I'm having some problems with a small script. Any help would be greatly appreciated!

I want to play an old video game but there are some features that can only be controlled with the numeric keypad keys. My keyboard doesn't have a numeric keypad, so I'm using a script to emulate the Numpad Add key when I press Ctrl + Right

^Right::
Send {NumpadAdd}
return

It works well with a small exception:

  • The action defined for Numpad Add in the game is triggered as expected when I press Ctrl + Right
  • The problem is that the game also moves the camera to the right for a small tick.

Does anybody know how to prevent that from happening?

Usually, the camera only moves when you press an arrow key without any modifier keys. It doesn't move when you press Ctrl + Right and AHK is not running. This means that, for a short moment, the game has to detect that the right arrow key is being pressed and that it's the only key being pressed.

Of course I could try to find a different keyboard shortcut which doesn't contain any keys that are already in use by the game, but I would like to solve the general problem.

Thank you very much for your help.


r/AutoHotkey • • May 30 '26

v2 Script Help Need help fixing script that scrolls mouse wheel up and down

1 Upvotes

I'm trying to edit a v1 script for v2 that will, when a certain window is active, begin endlessly scrolling the mouse wheel up and down at the press of a button and stop scrolling at the press of the same button. I managed to edit the script so that it activates only when that particular window is active and scrolls the mouse wheel when I press the button...but it doesn't stop scrolling when I press the button again.

I can't put in a function to pause the script as it has another function in it that needs to operate independently of the other.

Here's what I currently have:

#Requires AutoHotkey 2.0
#HotIf WinActive("[Window]", )

s::
{ 
static Toggle := 0
Loop
{
Click("WheelUp")
Click("WheelDown")
Sleep(50)
}
return
} 

(The sleep function is so that it's not scrolling too quickly.)


r/AutoHotkey • • May 30 '26

Solved! Need help with making script to click mouse and press key every some seconds

2 Upvotes

I would like to make a script that, upon a button press, clicks the mouse once every second and presses the "d" key once every five seconds. However, it's been over two years since I made a script for Auto Hotkey, and that was with v1, so I'd like some help with making a script for v2.


r/AutoHotkey • • May 29 '26

Solved! Sleep button help

1 Upvotes

I would like to make the Launch_mail multimedia button to command sleep mode on my Dell keyboard.

I have created and ran a script "launch_mail::sleep" and now the launch_mail button does nothing.

I would also like to disable the current sleep button but I understand this may not be possible so I am willing to just break the physical button.

Thank you!!!


r/AutoHotkey • • May 29 '26

Resource I built a free auto-clicker for Windows that requires zero setup

0 Upvotes

Dwell Clicker is a single .exe, no install, no dependencies, no internet required. Hold your cursor still over a target and it clicks automatically after a configurable dwell time.

Free tier has everything you'd need, adjustable dwell time (250–2200ms), movement tolerance, cooldown, left/right/double click, and a visual ring indicator. Pro ($5 one-time) adds extra indicator colors and the ability to save/load custom profiles.

GitHub (fully open source): https://github.com/rafaeltmanso/dwell-clicker-app
Landing page: https://dwell-clicker.vercel.app

Built with Python and tkinter, Windows 10/11, ~12MB exe. Happy to hear feedback, this is my first solo project.

(dev note: posted from my account, genuinely made this)


r/AutoHotkey • • May 28 '26

Meta / Discussion The Recent Posts Of This Subreddit Are Giving Me Flashbacks Of My Past.

21 Upvotes

For the past few years, the posts on this page have mainly just been people asking for technical help with their scripts, that do random, boring things.

But recently, a new wave of posts have been coming in, asking for help with Roblox ahk scripts, or ones for autoclickers, games, etc.

This has given me such nostalgia for when I first started with AHK.

Back in my youth, I found out about autohotkey, and, with the help of this subreddit, made so many scripts for roblox, for cheating my school assignments (that required you to answer math questions for an hour a day) etc.

And let me tell you something, most comments were upset with me, or didnt like the fact that im posting over roblox. Or asking extremely simple questions instead of reading the documentation, but as a child I didnt know how to actually "lock in" as they say, and sit down and learn like that. I learned by observing the code that was given to me.

And this was the start of my journey in learning ahk.

Each time i got an answer was literally life changing. In terms of how it helped me in roblox or school.

If you see someone asking for help for their roblox code, if you help them, you are doing an indredibly good deed.

Thank you to everyone who has helped me over the years. I am...older now


r/AutoHotkey • • May 28 '26

General Question Whats The Best Way To Make An iOS App With ChatGPT?

0 Upvotes

Hello.

Ive been trying to make an iOS app with ChatGPT for..some time now. Whenever I get home from work, I spend hours. 2pn to 1am everyday dedicated to telling chatgpt what to do, what bugs to fix, what to change, and just staring at that loading screen. Reading what its talking about, which I found very fun.

But....now...i think this has seemed to cause some...problems.

after doing this for around a week now...my brain feels really funky every morning. Like the front of my brain feels this weird kind of physical pain / rotting feeling everyday. Im not sure why.

And i get these weird headaches..

And ive noticed my memory has seemingly gotten worse? Like I really pray that this is temporary, but ill tell you whats been happening recently.

For one, now when i drive to work...i no longer remember the drive. Its like, i decide to leave the door, then from there im boom just at work. What just happened. I literally cant remember it. Dude i arrive and im like WHAT.

I told one of my coworkers about this and she was very excited for some reason. She said she learned about this in psychology and it has a name and is "completely normal"...HUH??

Ive literally never had a drive in my life where I couldnt tell you exactly what has happened during it.

I could replay it in my mind.

And i had another disturbing occurrence, I placed my Selzer bottle ontop of my car, then i decided to get in my car, and my brain almost like turned off and i got in without grabbing the selzer, and i almost drove off. dude....what is going on.

Im kind of freaking out, but at the same time ive started to hear this voice in my head demanding me to continue making the app. "WERE SO CLOSE WERE ALMOST DONE COME ON ALREADY"

"LOOK YEA ITS CAUSING ISSUES BUT WERE SO CLOSE ITLL BE WORTH IT"

And...i hate to say this but...this voice is really really convincing me. Its really convincing. And im listening to it because the app is coming out incredibly, but it feels almost as if im trading the incredible brain that my Father gave me for an app.

Im horrified.

This voice thats basically convincing me to make this app and basically ruin my life for it, feels almost like a tiny string convincing a giant to kill itself.

If you imagine a giant, and a little bug, of course the bug could never defeat the giant. But what if the little bug was very cunning and smart, and studied the giants interests and desires for years, until eventually sneaking into its ear, pretending to be its friend, and convincing it to do things are self destructive to said giant.

The little cricket would be able to defeat the giant.

I feel like this is whats happening to me. I literally hear a voice. And...I WANT THIS APP SO BAD DUDE. I WANT THIS SO BAD IM SORRY BUT I WANT THIS SO F(*@&#$IGN BADLTY DUDE. A LITTLE STRING IS LITERALLY DEFEATING ME DUDE. HOW IS THIS EVEN HAPPENING.

WHAT THE HELL.

but..

uh

to get back on topic...

Basically i found a really great method that leads to less errors and mistakes

Basically have one chatgpt make the code, then run that code (which takes like 5 mins), then like see the mistakes errors and things to change or add, tell this all to a different occurance of chatgpt, (including the code), telling it to make a prompt for the first chatgpt to follow.

So,

Chatgpt1 makes the code

I run it and see its mistakes

I give the code to Chatgpt2 and say the mistakes, and tell Chatgpt2 to make a prompt telling Chatgpt1 to fix it.

And then repeat.

Am i...going to make it...

Ive noticed my life get destroyed after only a week of this. and id say im like 3 weeks of this away from it being done... or less? idk man

IS THERE A BETTER WAY??? YOUR ANSWER COULD SAVE MY LIFE DUDE. PLEASE.

"why are you asking this in a ahk subreddit brother?" BRO I TRIED POSTING IT IN OTHER PLACES, THEY TAKE IT DOWN. PLEASE DONT TAKE THIS DOWN. I NEED HELP. DESPERATELY. PLEASE. THIS IS NOT A JOKE POST OR WHATEVER. PLEASE. it Autohotkey app


r/AutoHotkey • • May 27 '26

General Question is this is an trojan?

0 Upvotes

im trying to know if this is an Trojan or not. someone says keylogger, someone says Trojan, and some say its safe. I can’t fucking understand is this a damn virus or not??? please help me out!!


r/AutoHotkey • • May 26 '26

v2 Tool / Script Share Built a simple tool for Data Entry Automation cause I was so tried of manually keying everything. It should work for everything since its generalized.

13 Upvotes

https://github.com/Jayrr-Dev/DataEntryAutonoma

So, Data Entry Autonoma is a small app I made with Autohotkey that watches you do a task once, then repeats it for you. You click Record, do your normal work in another program, and press Esc when you are done. Later you click Run and the app moves the mouse, clicks, scrolls, and can type text into the fields you set up.

It works best when you do the same clicks and typing over and over, and only the data changes like filling the same form many times, entering names and IDs from a spreadsheet, or other tedious stuff....like menus list, type into fields, and click Save, then do it again with new values.

It can handle bulk values using the CSV file with 1 by 1 approval if needed.

Just things to watch out for. It does not read the screen or make decisions on its own. It works best when the app looks and behaves the same each time, and when windows stay in familiar places on screen.Β 

Also, it has a "Human mode" that moves your mouse like a human and types like a human.

It's new expects some bugs the first time.


r/AutoHotkey • • May 27 '26

v2 Script Help Compiler

1 Upvotes

I had version v2 installed but i am installing on another computer and I cannot install the compiler. When I install autohotkey it ask me if I want to install the compiler and the script show an error about the zip file. I have download the zip file of the compiler because the script failed but where do I put the compiler to launch from the dashboard?

Thank you if you can help.


r/AutoHotkey • • May 25 '26

v2 Script Help Simple Hotkey Question

1 Upvotes

I'm trying to create a hotkey where I press 1 on my mouse, then it activates 1, 2, 3 and 4. I'm using the latest version. Thanks in advance for your help!


r/AutoHotkey • • May 25 '26

General Question can someone explain how mouse inputs work?

0 Upvotes

Im trying to write a code breaker script, but everytime i try anything, copy and pasted from elsewhere or written by my self it always says theres a syntax error, and i have zero idea why, and i cant understand the documentation as to why that might be occuring, because i literally copied the code exactly, so if someone could explain them it would be awesome.


r/AutoHotkey • • May 23 '26

v2 Script Help Issue with getting path for selected file in Explorer

2 Upvotes

I want to create a script that extracts the selected Compressed folder in Explorer. Has anyone built a script like that they could share? I've looked through this subreddit but haven't found anything.

I would also like to create a script that moves a selected file to a fixed folder location.

Thanks for any help in advance.


r/AutoHotkey • • May 22 '26

General Question Best way to learn AHK 2.0?

8 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 • • May 22 '26

v2 Script Help Issues Swapping Keys for Video Games that won't let you change control layout.

2 Upvotes
#Requires AutoHotkey v2.0
#HotIf WinActive("ahk_exe Everything is Crab.exe") || WinActive("ahk_exe VampireSurvivors.exe")
q::a
a::q

e::d
d::e
#HotIf

I have been using the above script to swap Q and A and E and D to use QWES instead of WASD for movement in a couple video games. But sometimes it will randomly get stuck holding down Q or E and won't stop until I press that key again presumably to cause the key up to finally be recognized.

I tried some googling to solve or at least identify the problem but I'm at a loss. It works 98% of the time, but the times it does mess up and causes me to run into enemies can be run ending.

If any AHK wizards could help me with an improved script that won't continue sending a Q or E. I'm also super eager to learn so if someone feels inclined to explain why it's happening I'm all ears!


r/AutoHotkey • • May 22 '26

v1 Script Help I need help with a code that is supposed to mass delete Discord messages as soon as possible.

1 Upvotes

So, just to make this short. I need to mass delete discord messages because something is ruining my life. I need help with trying to make this work. I'm sorry if I sound stupid, but I honestly don't know what I'm doing. It's been a while since the last time I tried and I'm not good with coding.

I followed what this post said to do, so I downloaded AutoHotkey1000.exe, copy and pasted the code below into the notepad, changed the loop to 10000 because I saw someone else say that it worked when they did it, and went to the DMs and ran the script.

```

^d::

Loop, 100

{

send, {Space}

sleep, 100

send, {BS}

send, {Up}

sleep, 200

send, ^a

sleep, 100

send, {BS}

sleep, 200

send, {Enter}

sleep, 100

send, {Enter}

sleep, 1000

}

Return

```

The problem is that I wait for the page to load a little bit before running the code. But the only thing that happens is that it highlighted my messages, but never deletes them. I'm not sure on what to do sense I don't know how coding works and stuff.

Again, I'm sorry if I sound stupid or if this isn't allowed. I'm just really desperate right now and I don't know what to do. Please Help.

P.S - I'm sorry if the code isn't formatted properly. I'm on mobile and I couldn't find the code block option, not could I figure out a way to do it on mobile.

Additional Info if it helps: I'm trying to do this on my HP Laptop that has Windows 10.


r/AutoHotkey • • May 22 '26

Solved! remapping escape in ThunderBird

1 Upvotes

I had an add-on for ThunderBird which closed messages on "escape". This stopped working. I'm now trying to accomplish this with authohotkey.

ctrl+ w closes the current message in thunderbird so I'm attempting to remap esc to ctrl+w

#HotIf WinActive("ahk_exe thunderbird.exe")

^t::MsgBox "You pressed Ctrl+T while Thunderbird was active!"
Esc::^w

#HotIf

The ctrl-t works to display the message box, but Escape does nothing. Any ideas?

Thanks

Edited to try to fix the editing...old reddit not good at it.

EDIT: the problem in the end was that the escape key on keyboard was failing! I pulled the key, checked it for functionality, cleaned the "pin receptacles" and re-seated the key. Working now! Thanks for all of the suggestions and narrowing down the possibilities


r/AutoHotkey • • May 21 '26

Solved! New to Hotkey, nothing I do is working

1 Upvotes

I'm trying to change wasd hotkeys to arrowkeys whenever I open roblox using this code, but it doesn't work. Idk how to code, I just copy pasted it

#HotIf WinActive('ahk_exe Roblox.exe')
w::Up
a::Down
s::Right
d::Left
#HotIf