Skip to main content
Filter by
Sorted by
Tagged with
111 votes
7 answers
99k views

I need to choose a Windows automation scripting language. Which one do you recommend; AutoIt, AutoHotkey or some other? I have read "An AutoIt / AutoHotkey comparison". Interesting history, ...
PA.'s user avatar
  • 29.5k
57 votes
8 answers
66k views

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
50 votes
8 answers
57k views

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
36 votes
6 answers
18k views

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,864
30 votes
3 answers
23k views

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.6k
29 votes
9 answers
13k views

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
  • 27.8k
28 votes
16 answers
47k views

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
25 votes
3 answers
18k views

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,350
24 votes
2 answers
29k views

The AutoHotkey Beginner Tutorial includes a sample script to demonstrate window specific hotkeys and hotstrings. #IfWinActive ahk_class Notepad ::msg::You typed msg in Notepad #IfWinActive #...
Stevoisiak's user avatar
  • 27.8k
23 votes
6 answers
41k views

I wrote this short test code, but it didn't work. What am I doing wrong? F12:: WinGetTitle, Title, A; MsgBox, "%Title%" The displayed result was ""
Kou's user avatar
  • 807
22 votes
5 answers
38k views

A simple script like a::msgbox hi! used to work fine under Windows 7. Now that I upgraded to Windows 10, it isn't working when certain windows are active. Specially LButton-Hotkeys can mess up ...
phil294's user avatar
  • 11.1k
21 votes
4 answers
17k views

I have an old IBM Model M from 1994. It's awesome, but it doesn't have a Windows key. I'd like to use AutoHotkey to map the combination of Ctrl + Alt to simulate the Windows key in order to take ...
jtmcn's user avatar
  • 347
20 votes
6 answers
30k views

This question has been asked before but with no answer. I'm running into brick walls with google too. Program can either be free or paid.
James Banks's user avatar
19 votes
11 answers
43k views

FULLY ADDRESSED for AWS Client on Windows under: version 5.26.0 March 4, 2025 [Windows only] Added a Ctrl+Alt+DownArrow keyboard shortcut to help users navigate from the client application to their ...
PGilm's user avatar
  • 2,312
18 votes
4 answers
20k views

supposedlyGlobalVariable := "blah" ARoutine() { localVariable := "asdf" MsgBox, The global variable value is %supposedlyGlobalVariable%. The local variable value is %localVariable%. } ^!X:: ;...
P.Brian.Mackey's user avatar
17 votes
2 answers
47k views

I have created a script to remap the Windows Button to right-mouseclick. How can I create an executable AutoHotkey file that I can offer for download, that automatically runs only that script?
rubo77's user avatar
  • 21.2k
17 votes
3 answers
9k views

While using AutoHotKey I wanted to setup a rule to swap the left alt and left ctrl. I can do this by doing: LAlt::LCtrl LCtrl::LAlt I then wanted to keep the 'alt tab' functionality bound do those ...
whomba's user avatar
  • 377
15 votes
3 answers
7k views

I'm migrating my mac workflow to Windows. One thing I couldn't live without is hyper key which is combination of Ctrl + Option + Shift + Cmd. I use Karabiner app to remap Capslock to this Hyper key. I ...
babygau's user avatar
  • 1,591
15 votes
2 answers
30k views

This is a super simple thing I am trying to get my head around I want to use something like WINKEY + ALT + C to paste ** - words** so that I can sign-off my posts or whatever using the three-key ...
user3045055's user avatar
15 votes
2 answers
3k views

I'm trying to set up AutoHotkey macros for some common tasks, and I want the hotkeys to mimic Visual Studio's "two-step shortcut" behaviour - i.e. pressing Ctrl-K will enable "macro mode"; within ...
Dylan Beattie's user avatar
13 votes
3 answers
8k views

I'm trying to bind "Esc" key to lock my computer with AutoHotkey. Manually pressing Winkey + l will lock my computer, but it doesn't work in my AutoHotkey script. esc:: MsgBox Going to lock ...
n0tis's user avatar
  • 838
13 votes
5 answers
5k views

When reading either of these questions or the EmacsWiki article about mapping Caps Lock to Control in emacs in Windows, the best answers seem to involve the registry. My question is what a user can do ...
Brendan Foote's user avatar
12 votes
5 answers
25k views

Is it actually possible to insert a line break in a message box text? I have searched far and wide and everybody talks about 'n or \n but that does not work. Can anyone give me an example of code that ...
user2157155's user avatar
12 votes
1 answer
11k views

I would like to add partial window title matching to #IfWinActive. For example to match any notepad window, regardless wether the title is "Untitled - Notepad" or "MyFile - Notepad" This should be ...
Nino van Hooff's user avatar
11 votes
2 answers
6k views

I'm constantly activating Firefox then hitting Ctrl+L to focus the location bar and do a search or type a URL. Ideally I can be in any application and hit Ctrl+L and Firefox will be activated with ...
GollyJer's user avatar
  • 27.2k

1
2 3 4 5
95