Skip to main content
Filter by
Sorted by
Tagged with
110 votes
7 answers
98k views

Choosing a Windows automation scripting language. AutoIt vs Autohotkey [closed]

I need to choose a Windows automation scripting language. Which one do you recommend; AutoIt, AutoHotkey, or an other? I have read "An AutoIt / AutoHotkey comparison". Interesting history, but ...
PA.'s user avatar
  • 29.2k
95 votes
4 answers
10k views

Why is visual studio catching key events before autohotkey?

I recently switched to the Dvorak keyboard layout as a bit of an experiment. One of the most difficult parts of the transition has been dealing with hot-keys. Most hot-keys are designed with QWERTY in ...
Dane O'Connor's user avatar
55 votes
8 answers
55k views

How to build AHK scripts automatically on startup?

Each time I restart my computer, I have to rebuild all my AHK Scripts so the keyboard shortcuts will work. For instance, I have a script that assigns Ctrl+j to set up an instance of the MEAN stack ...
Travis Heeter's user avatar
53 votes
11 answers
151k views

How do I stop an active AutoHotkey script?

Yesterday while debugging my AutoHotkey script, I accidentally triggered an endless loop of MouseMove and MouseClick events. Every 0.5 seconds my mouse would click random parts of the screen. After ...
Stevoisiak's user avatar
  • 26.2k
50 votes
7 answers
55k views

How to globally map AltGr key to Alt key?

I want my AltGr key to behave exactly like left Alt. Usually, I do this kind of stuff with Autohotkey, but I'm open to different solutions. I tried this: LControl & RAlt::Alt And Autohotkey ...
Tomas Sedovic's user avatar
46 votes
1 answer
34k views

AutoHotkey syntax highlighting in Notepad++

I would like to display syntax highlighting for AutoHotkey .ahk script files in Notepad++. I don't want to manually select a language every time I open an AHK script. I want language-specific syntax ...
Stevoisiak's user avatar
  • 26.2k
35 votes
5 answers
17k views

AutoHotKey key SEQUENCE, not just single-key hotkey

I'm not stupid... really. How do you map a key SEQUENCE (ie: Ctrl + Q , F) in AutoHotKey. I've got Ctrl + Q down: ^q:: I've even got F: f:: The examples in the help files even show how to do two ...
Joshua's user avatar
  • 6,833
34 votes
5 answers
26k views

How do I use UTF-8 in AutoHotKey?

I am trying to make two hyphens trigger a short dash, and three hyphens trigger a long dash; like :*?:---=::— :*?:--=::– except working. Here is where I have gotten to: :*?:11:: SendLevel 1 Send 2 ...
Eamon Moloney's user avatar
30 votes
3 answers
22k views

Detect a double key press in AutoHotkey

I'd like to trigger an event in AutoHotkey when the user double "presses" the esc key. But let the escape keystroke go through to the app in focus if it's not a double press (say within the space of a ...
Matthew Lock's user avatar
  • 13.4k
29 votes
5 answers
18k views

Hotkey for next song in Spotify

After March 2015 upgrade of Spotify the below hotkey no longer works to get next song in Spotify: ; Spotify next track <^>!p:: DetectHiddenWindows, On ControlSend, ahk_parent, ^{Right}, ...
EquipDev's user avatar
  • 5,861
29 votes
9 answers
12k views

Configure Autohotkey to edit scripts with Notepad++

I have my default editor for .ahk files set to Notepad++ Portable on my work laptop, but selecting Edit This Script opens files in the standard Windows Notepad. A post on the AHK forums suggests ...
Stevoisiak's user avatar
  • 26.2k
27 votes
2 answers
62k views

How do I send a key multiple times in Autohotkey?

I want to write an AutoHotkey script which presses a key X number of times. For example, here's a script which presses Tab 10 times. Send, {Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab}{Tab} While ...
Stevoisiak's user avatar
  • 26.2k
27 votes
16 answers
42k views

What is the right way to send Alt + Tab in Ahk?

Ok. I know this is a very stupid question. But I'm stuck already for an hour. I got very little experience with ahk, however I made work every script until now with no problems. I explored the ahk ...
user avatar
26 votes
9 answers
13k views

How To Start Windows Store Apps in AutoHotKey?

Window Store apps are not like the classic Windows apps. The latter usually are installed at clear paths under C:\Program Files. So, AutoHotKey (AHK) scripts can simply run a classic app by "Run" with ...
Meng-Yuan Huang's user avatar
24 votes
3 answers
16k views

How to map caps lock to ESC in AutoHotkey?

How to set up AutoHotkey so that when I press the Caps Lock, it will instead send the ESC key to the computer?
Anonsage's user avatar
  • 8,280

15 30 50 per page
1
2 3 4 5
314