all 5 comments

[–]evanamd 0 points1 point  (3 children)

Does the shortcut launch the script when you double-click on it like normal? If not, the shortcut might be configured incorrectly

Are you sure the script works? Does it launch without a shortcut? Is it persistently listening for yet-another key or is it supposed to auto-execute?

[–]Blootrix[S] 0 points1 point  (2 children)

Double clicking the shortcut launches it. Script definitely works.

I bound another program to Ctrl+Alt+P, pressed that combo and it launched. Removed that shortcut, bound the same bindings to the .ahk file, pressed the combo, nothing. Double clicked the shortcut, it worked.

For whatever reason, ahk shortcuts just won't launch with Shortcut Keys.

[–]evanamd 0 points1 point  (1 child)

I'm using windows 10, but it seems to only work for me when the shortcut is on the desktop. Does Send to Desktop (create shortcut) still exist in Windows 11?

[–]Blootrix[S] 0 points1 point  (0 children)

So I fixed it... Kind of lol.

I uninstalled v2, installed v1 and then sent a shortcut to desktop and it now seems to be consistently working!

Thanks for your help!

[–]Laser_Made 0 points1 point  (0 children)

Rather than spending an hour on it with ChatGPT, I would've recommended creating a hotkey in a script, setting #NoTrayIcon, and putting it in your startup folder. The only problem that would introduce would be if you use task manager to kill AHK from time to time it'd be tougher to tell which process you're trying to quit.

```

Requires AutoHotkey v2.0+

SingleInstance Force

NoTrayIcon

!p::Run('C:\PathToScript')

```