Questions tagged [autohotkey]
AutoHotkey (AHK) is a free, open-source macro-creation and automation software for Microsoft Windows that allows users to automate repetitive tasks. It is driven by a scripting language that was initially aimed at providing keyboard shortcuts, otherwise known as hotkeys, that over time evolved into a full-fledged scripting language.
1,365
questions
0
votes
3
answers
61
views
Where to put caps lock remapping in vim_ahk (AutoHotkey)
Where in the rcmdnk/vim_ahk AutoHotkey package (which file) should I try to remap the caps lock to esc?
I know little about AutoHotkey, and for the longest time my entire AHK script consisted of:
#...
0
votes
0
answers
32
views
New to MacOS and trying to replicate a few things that I already do using Autohotkey on windows
Below is my Autohotkey script that automatically copies the text of any questions that I ask on the websites for ChatGPT, Gemini, and Claude (I have them installed as chrome apps) by detecting the ...
1
vote
2
answers
149
views
Switch windows using windows key + # shortcuts by window not app? Also show numbers on taskbar?
You can use the keyboard to switch programs in Windows 11, for example Windows + 2 goes to the second app on the taskbar, and Windows + 3, 3 goes to the second window of the third app. But it is a big ...
1
vote
0
answers
110
views
How to convert a script using VarSetCapacity to AHK v2?
I have been using the script Advanced Window Snap, which snaps windows to various places of the monitor, which uses the function GetMonitorIndexFromWindow to determine in which monitor a window is ...
3
votes
0
answers
123
views
How to bind USB control knobs to adjust the volume on specific applications?
I want to control the volume level of 2 specific Windows Applications using my USB piano's control knobs (Spotify Premium & discord).
FIRST TRY - AutoHotkey. The KeyHistory does not detect any ...
1
vote
0
answers
27
views
Drag to open link in container tab, in Firefox
What I want: Drag a link to a direction (left for example) then it was opened in a container tab (I have only one container currently)
What I have:
Firefox beta 124
Violentmonkey
Glitterdrag that can ...
2
votes
1
answer
185
views
AutoHotKey WinGetText not retrieving text
I am learning AutoHotKey and trying to see whether I can use it to automate certain processes that we need to do. It will open a browser window using MS Edge (once I get it working I can code it to ...
0
votes
1
answer
113
views
Prevent sending a specific key if I'm pressing other 2 or more keys
I have this mouse with additional forward and back buttons at the side and here's an AHK script that I use with it, It's main purpose is:
If middle mouse button is scrolled up while holding down ...
0
votes
2
answers
196
views
AutoHotKey CapsLock conditon the activation of the script
In AutoHotKey (AHK) I wanted to just condition my script.
If caps lock his OFF nothing happen if it's ON the script his executed and of course detect any change
here is my try but won't work it allow ...
1
vote
1
answer
62
views
How do I prevent the GUI overlay from disappearing when I play videos in fullscreen?
I made a screen dimmer in AHK. The code below is a stripped-down version:
opacity := 100
Gui 1:New,+AlwaysOnTop -Caption +ToolWindow +E0x20, GuiName
Gui 1:Color,Black
Gui 1:Show, x800 y300 h300 w300
...
0
votes
1
answer
110
views
AHK keywait for multiple keys (missing (SC) (VK))?
I got this function from here :
https://www.reddit.com/r/AutoHotkey/comments/1arcp8q/comment/kr1km61/?context=3
It waits for one or multiple keys to be pressed, But It doesn't accept scan code (SC) or ...
1
vote
1
answer
177
views
Autohotkey: Can't get the name and path of a pdf file
The following code gets the selected text from a file after pressing ctrl+shift+c and appends its name and path to it, then copies it to the clipboard. It works with a .txt file, but not with a pdf ...
1
vote
0
answers
89
views
TextExpander Performance Issues - Windows
I have been looking all over online to see if anyone has been experiencing performance issues with their TextExpander snippet expansion.
For example, on my Mac my snippets expand just fine, it's fast ...
0
votes
1
answer
46
views
Any fix for AHK (v1.1) latency across rdp connection?
Much of my work happens on a remote app connected via rdp. I don't have access to install AHK on the remote server. I have several dozen text macros in AHK that simplify this greatly. One- or two-...
0
votes
1
answer
170
views
Trying to make my middle mouse button to function as 3 different keys based on the elapsed time it has been pressed
I'm using AHK and my main goal is to make my middle mouse button to function as it normally would if I pressed it once, but would trigger Ctrl+C or copy if I pressed and held it for 500ms and paste ...