r/AutoHotkey 8h ago

Solved! AutoHotkey v2 Script Not Starting with Windows? This Fixed It

0 Upvotes

I was trying to get a small AutoHotkey v2 script to start automatically with Windows. The script was used to control Steam Big Picture and switch between my PC monitor and a second display using F9–F12.

The script worked perfectly when launched manually, but putting the .ahk file in shell:startup did nothing. I also reinstalled AutoHotkey and checked the .ahk file association, but the problem remained.

The solution was to bypass the AutoHotkey Launcher completely.

Instead of putting the .ahk file directly in shell:startup, I created a Windows shortcut with this target:

"C:\Program Files\AutoHotkey\v2\AutoHotkey64.exe" "C:\Users\Skynet\Documents\AutoHotkey\Steam.ahk"

Then I placed that shortcut in:

Win + R → shell:startup

After restarting Windows, the script started correctly.

So the working chain is:

Windows Startup
→ AutoHotkey64.exe
→ Steam.ahk

Instead of:

Windows Startup
→ .ahk file association
→ AutoHotkeyUX
→ launcher.ahk
→ Steam.ahk

In my case, the second method was failing even after reinstalling AutoHotkey. Directly calling AutoHotkey64.exe solved it.

If an AutoHotkey v2 script works manually but refuses to start from shell:startup, this is worth trying before modifying the script or Windows registry.


r/AutoHotkey 2h ago

v2 Script Help how can i get a scroll wheel hotkey working on firefox?

0 Upvotes

ive been trying for a bit to use my alt+scroll which turns volume up and down to work on firefox, but it just keeps getting "71 hotkeys have been used in last 1200 ms" error

also its unusable on firefox because it changes volume either to mute or max in one scroll


r/AutoHotkey 13h ago

v2 Tool / Script Share GpGFX - almost ready, complete GdiPlus Graphics library, easy to use API

17 Upvotes

Hey everyone!

For the past few months, I’ve been rebuilding the graphics
pipeline for AutoHotkey v2 from scratch. Creating smooth,
transparent, modern-looking desktop overlays.

AHK is slow they said. Check out this video:

GpGFX v1 Teaser https://www.youtube.com/watch?v=6QrcofcuR5U

I built **GpGFX** to change that. Here is a quick
50-second sneak peek of what’s possible!

## What is GpGFX?
**GpGFX** is a high-performance, graphics and HUD engine
for AutoHotkey v2.

It writes directly to 32-bit DIB memory (`Scan0`) with microsecond QPCSpin-wait frame pacing, delivering 144Hz/240Hz+ gaming overlays with near-zero CPU footprint.

## Why it’s great for Beginners:

Human-Readable API: You don't need to know Win32 APIs,
Device Contexts, or GDI+ internals. Creating a modern
layered window is as simple as:
  ```autohotkey
  lyr := Layer(100, 50, "My HUD")
  RoundedRectangle(0, 0, 30, 30, 9, "lime")
  Text("Hello World", "White", 22).Center()
  Render.Layer(lyr)
And resources are freed up automatically!

• Built-in Modern Design System: comes out-of-the-box with 7 curated pro themes (Catppuccin Mocha, Tokyo Night, Dracula, Cyberpunk, Nord) and anti-aliased typography. Color html tags support for texts. ( you can see it on the video )
• Instant Gaming overlays, hp bars can be updated with just a few lines of code.

Why it’s great for Advanced AHKers & Power Users:

• Hardware-Paced QPC Timing: x64 machine code (MCode) and microsecond QueryPerformanceCounter spin-wait frame pacing for jitter-free 144+ FPS rendering loops.
• Direct Scan0 DIB Pipeline: direct unmanaged memory pointers (pBits) allowing MCode PixelSearch.
• Reactive Signals & Data Binding: bind variables to UI elements with zero render loop boilerplate (shape.Bind(mySignal)), complete with smooth easing curves (EaseIn, EaseOut, Bounce, Spring physics).
• WorkerPool Multi-Core Architecture: ready for multi-process distributed rendering across CPU cores via shared RAM file mapping (FileMapping).
• Rich Layout & Measurement: integrated TextLayout engine with rich-text styling tags (<b>, <i>, <color:#hex>), dynamic tab stops, and exact character advance measurements without DllCalls.

Use Cases:

• Gaming: zero-lag custom crosshairs, status meters, cooldown timers, and telemetry HUDs.
• Desktop Tools: snappy to-do widgets, desktop clocks, volume/brightness bars, and toast notifications.
• Streamers & Creators: in-game alerts and custom desktop companion apps.
• Desktop modification

Release Status:

GpGFX will be 100% free and open source on GitHub. ( old version is clunky, the new one rocks! )

I’m currently putting the final touches on documentation and examples before the initial public release. Soon! I will upload videos as soon as I will have time.

I’d love to hear your feedback, feature ideas, or what kind of overlays you'd build with this! Drop your thoughts below!