r/AutoHotkey • • Mar 02 '24

General Question Why do I have Window Spy for AHKv2?

4 Upvotes

I installed AutoHotkey to rebind some buttons on my keyboard. I havent been using AutoHotkey for a long time. Now I just found out that my Pc has Window Spy for AHKv2 on it. After some Research I found out that the Spy software came with the AutoHotkey download. Now Im very afraid of my Data and that someone is going to abuse it. Can someone help me out?


r/AutoHotkey • • Jul 28 '24

Make Me A Script Can someone make a script that will make me feel happy again

0 Upvotes

Ive recently developed a couple health problems, and ive noticed the slight deterioration of my brain.

I no longer enjoy listening to the music i once loved

I no longer enjoy the games I once spent hours playing

And my heart beats like 5000 times a second now

I literally have no idea what happened, i just woke up one day and my heart was beating super fast. And i went to the doctor, and he told me to just man up.

that cost me 100 dollars dude

Idk what to do now i feel too akward to go back to the docor but i still have no idea what this is and my heart beats faster when i lie down and it gets hot idk why and when this will go away

I asked the doctor when will this go away and he just kept saying "your heart is good your heart is good enough questions" like BRO youre the doctor 😭

I dont think im going to die or anything, but its clear my health has reached its peak in life. Mentally and physically. Im not sure how much longer i have with a fully functional brain, but i want to deeply thank everyone who has helped me in this subreddit in the past. the help ive recieved here is so incredible. worth more than trillions and trillions. i hope all you kind people are repaid one day for all the good youve done.

EDIT: I have Pericarditis

I thought i was being irrational since a doctor had reassured me I was completely fine, and he would get annoyed when I asked more about it. So your comments that we’re concerned as well helped me feel like valid in searching for medical attention

I went to the cardiologist and he said it’s Pericarditis

Thanks for helping me out here


r/AutoHotkey • • Oct 27 '20

macro

0 Upvotes

need a macro for 1v1.lol


r/AutoHotkey • • Jul 07 '25

v2 Script Help Make AHK undetectable at work (legitimate productivity script)

1 Upvotes

Hello!

Today my laptop quarantined an EXE file that is used to install a plugin to view our CCTV on web-browsers. I run the portable AHK EXE with my own script of hotkeys & hotstrings. Simple but effective, this gives me huge speed gains at my job. I don't want to lose AHK, I'd never get approval to use it.

I use this to make my script pretend its calc.exe though I don't know if it works. I don't have any software that scans for unapproved EXE's.

#Requires AutoHotkey >=2.0 ; | #Directives to force use of AHKv2 when both v1 & v2 are installed.

;@Ahk2Exe-SetDescription Calculator

;@Ahk2Exe-SetMainIcon calc.ico

;@Ahk2Exe-SetCompanyName Microsoft Corporation

;@Ahk2Exe-SetCopyright \xA9 Microsoft Corporation. All rights reserved.

;@Ahk2Exe-SetDescription Windows Calculator

;@Ahk2Exe-SetInternalName CALC

;@Ahk2Exe-SetProductName Microsoft\xAE Windows\xAE Operating System

;@Ahk2Exe-SetVersion 10.0.19041.1

Are there any tips to stop the AHK EXE being removed/quarantined?


r/AutoHotkey • • Dec 17 '24

General Question Is WindowSpy a virus?

0 Upvotes

My paranoia has been driving me up a wall, so just wanted to ask about it, as it's name just kinda gives me virus feels


r/AutoHotkey • • Feb 17 '24

General Question Is AutoHotkey safe

0 Upvotes

I downloaded AutoHotkey to play bss thinking that it definitely was safe but I noticed that there was a program called AutoHotkey Window Spy that came with it. Has this software got a virus or any malware on it or is it safe to use?


r/AutoHotkey • • Jul 19 '21

Will windows 365 kill off AutoHotkey?

0 Upvotes

Y'all thought about Windows 365? How will it affect AutoHotkey usage?

https://youtu.be/g8Q-V1t9ddU


r/AutoHotkey • • Jun 28 '22

Meta / Discussion I hate how Avast keeps detecting my scripts as a virus

0 Upvotes

There are completely no bugs in my script, but it's probably due to the fact that I run some of them with administrator privileges. Still, if anything is causing any problems, it's that antivirus software and not what it's detecting as a virus (my scripts). Although this problem goes away after creating an exception, it just makes sure to annoy the hell out of you every time you create a new script by showing a prompt saying it has detected a virus and slowing down your computer tremendously while it is showing the prompt (for seemingly no other reason than to scare you off from the files it "detected"). It creates about a five-second delay in all inputs, including cursor movements (which become jittery, like an FPS drop) and key presses. The moment I click on "create an exception," my PC would continue to function as normal.


r/AutoHotkey • • Dec 22 '21

Is it possible to autoclick in the Roblox Game Window while tabbed out doing other things?

0 Upvotes

Hi, does anyone have a script that allows me to autoclick in the roblox game window only, so I can still use my mouse for other things in other tabs? More specifically, I play a game called "lifting simulator". I need to click like 50 times per second, my other autoclicker clicks once every 01 milliseconds.

This is the classes shown in windowspy:

Roblox

ahk_class WINDOWSCLIENT

ahk_exe RobloxPlayerBeta.exe

ahk_pid 8764


r/AutoHotkey • • Mar 20 '20

Need Help Is there an xbox version to AHK?

0 Upvotes

Just curious because I need some kind of command thing for xbox


r/AutoHotkey • • May 26 '21

Meta / Discussion Little announcement for those who know me

0 Upvotes

so if you happen to know me then you know I make little useful scripts like my Calculator or my Alarm Clock which I don't fully recommend using as it happens to not inform you sometimes that its time or my MsgBox Creator or my now halted project TreeView List Creator, however, im gonna take a break from coding for a while, I need to get back with school and stuff, however I will be working on either the calculator and improving its way of operating things or my ToDoList which I hate now as its buggy most of the time when starting up not showing the tasks, so I might be fixing that one but I doubt it, so yeah stay tuned on the Calculator one, but I won't be posting anything for some time now and as I said its because of school and things like my relationship so yeah


r/AutoHotkey • • Aug 05 '22

General Question Should the AHK sub be handed over?

3 Upvotes

The Mods are clearly not here any more. But one, but here and there, Sorry for being that guy but we get the same post over and over and nothing but hate here. Plus we get people also coming here acting like they are new but in truth dont want to learn and just want free code. maybe some more active people should be mods, just saying! even if its an automod. What do you think? plus no polls drives me crazy lol.


r/AutoHotkey • • Jan 01 '25

General Question Sooo... about downloading.

0 Upvotes

Any way to get the downloads and tutorial for it without the site?

Mostly asking because the fucking thing has been down for 500 years at this point.


r/AutoHotkey • • Mar 15 '25

General Question Is autohotkey really save?

0 Upvotes

I want to download autohotkey because I want to change controls in undertale, but virus total says that it contains malicious files.


r/AutoHotkey • • Jul 03 '26

v2 Script Help Im new and very bad at coding can anyone help write a code in ahk to remap the arrow keys to wasd while a certain program is open?

0 Upvotes

One of my friends helped me do this with undertale a couple years ago and it looked really simple but i cant really figure out how to make it myself now that im playing deltarune could anyone please help


r/AutoHotkey • • Jan 21 '25

General Question I saw many courses of many languaves on Youtube which have a duration of 6 hours by example

0 Upvotes

So why tbere are none for AutoHotKey?


r/AutoHotkey • • Aug 02 '21

Need Help Help me with a simple script, and make it snappy.

0 Upvotes

Need someone to solve everything right now.


r/AutoHotkey • • Aug 03 '21

may I have a script that: spam spacebar, toggle with F1

0 Upvotes

Sorry, I thought that I could find someone else asking this myself but they all have different needs lol


r/AutoHotkey • • Aug 29 '22

Script Request Can someone here please make what I think is a very simple script? script that everytime it detects a certain keyword it opens a file in response.

0 Upvotes

I asked in r/batch but turns out thats not what batch files are for and I was told to search for autohotkey instead.

anyways here is what I want

a file that every time it detected a certain keyword (in my case "son of sparda") it would open a file (in my case "bury the light.mp4")


r/AutoHotkey • • Jan 24 '23

v1 Script Help autoclicker help

0 Upvotes

so I found this autoclicker code on autohotkey.com but whenever i start the script it starts to click

$LButton::

While, GetKeyState("LButton", "P")

Click

Return

F7::Suspend


r/AutoHotkey • • Aug 18 '20

Need Help help creating hotkey

0 Upvotes

how do i map d and right alt to press at the same time when i click d. and how do i map a to press a and right shift at the same time.


r/AutoHotkey • • Apr 14 '21

Valorant auto jump (anti afk)

0 Upvotes

anyone know how to create a autohotkey to jump like every 5 seconds so i wont be kicked when i go afk


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 • • Mar 20 '23

General Question I feel like we should change the banner and wallpaper for the ahk subreddit

0 Upvotes

They could use an upgrade, maybe we could hold a contest. I could also design them if you want immmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm preyy good


r/AutoHotkey • • Dec 12 '22

Solved! ChatGPT is really a time saviour!

1 Upvotes

I just wanted to create one context menu to visit daily checking websites. Instead of googling on my own or reading docs, I just asked ChatGPT "run selection menu when hotkey is pressed using autohotkey "and it gave me the perfect result!

Screenshot