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.

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.

AutoHotkey can be used to:

  1. Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or a macro recorder.
  2. Remap keys and buttons on your keyboard, joystick, and mouse.
  3. Create hotkeys for keyboard, joystick, and mouse. Essentially any key, button or combination can become a hotkey.
  4. Automate almost any kind of GUI.
  5. Retrieve and change the clipboard's contents.
  6. Opening programs, documents, and websites with simple keystrokes.
  7. Monitoring a system and automatically opening wanted and closing unwanted programs.
  8. Scheduling an automatic reminder, system scan, or backup.
  9. Creating text replacement task or automatic spelling corrections.
  10. Convert any AHK script into an executable file that can be run on computers where AutoHotkey is not installed.

AutoHotkey also has a very friendly and helpful community.

Resources

1374 questions
132
votes
12 answers

How can I open a command prompt in current folder with a keyboard shortcut?

How can I open a command prompt in current folder with a keyboard shortcut in Windows 7? Is there any way to implement this? I think Autohotkey could do this, but don't know how.
Gemili
  • 1,423
66
votes
5 answers

Ctrl+Backspace inserts a small box instead of erasing

When I press Ctrl+Backspace, sometimes a small square is inserted, instead of the entire word being erased. The problem only happens in some text boxes; in others the shortcut works like it should. Start menu search box: works Notepad: doesn’t…
ugh
61
votes
6 answers

"Select to Copy and Middle Click to Paste" in Windows

Is there any application to mimic the "Select to Copy and Middle Click to Paste" behaviour in Windows? I was hoping to find an AutoHotkey script for this, but I couldn't.
swamplord
  • 1,088
49
votes
4 answers

How can I record macros for Autohotkey?

I used a macro recorder for AutoHotkey in the past, but now I can't seem to find it at all. How can I record macros for Autohotkey?
Karsten
  • 898
49
votes
14 answers

What to do when I need more keys than my keyboard has?

I have a standard keyboard. With AutoHotKey, I have mapped F1 to F12 to perform extremely specific tasks which I have muscle-memorized, and in addition to these, I have numerous WinKey+Letter remappings to perform other tasks of a different kind,…
33
votes
2 answers

Is there a way to dismiss notifications using a keyboard shortcut in Windows 10?

I'm talking about the notifications that appear in the bottom right corner and disappear by themselves in a few seconds. However, they sometimes can take up a lot of space and get in the way, which is bothersome. You can 'swipe' them away with your…
32
votes
10 answers

Keyboard Shortcut to Swap Mouse Buttons

I use my mouse with both hands and like to switch back and forth for comfort reasons. However, this is made difficult by needing to go through about a zillion layers of menus to swap the buttons each time. Is there an easy way to create a single…
dsimcha
  • 1,264
29
votes
1 answer

How do I escape the '{' and '}' characters in an AutoHotKey script?

I'm trying to write a simple auto-replace script but can't find how to insert the '{}' characters. The usual escape characters (backtick ` or backslash ) don't seem to work for curly brackets. e.g.…
pelms
  • 9,361
26
votes
6 answers

Disable Ctrl+Z shortcut or clear undo history in Windows Explorer?

Is there any way to disable the CTRL+Z (Undo) shortcut in Windows Explorer? Alternatively, is there a way to have Windows Explorer "forget" its undo history? The reason I ask is that you may have done some file operations in Explorer (copying,…
JustinStolle
  • 1,564
23
votes
6 answers

How do I disable specific windows 10/Office Keyboard Shortcut (CTRL+SHIFT+WIN+ALT+D)

it seems that Office has decided to hi-jack the keyboard shortcut CTRL+ALT+SHIFT+WIN+D. That might not seem like a problem, but I have assigned that keyboard shortcut in AutoHotKey and have been using it for years. It started opening the Office Hub,…
23
votes
2 answers

Open Powershell as Administrator at Current File Explorer Directory Keyboard Shortcut (Windows 10)

Let's say that I'm browsing through Windows File Explorer, and suddenly I decide that I would like to open Powershell as administrator at the current directory (the directory that I'm at in File Explorer). Naturally, I'd like to open this as…
21
votes
2 answers

Swapping Function (Fn) and Control (Ctrl) Keys on Lenovo ThinkPad W500

I'd like to swap the Fn and Ctrl keys on my ThinkPad W500 (like many others! See: How can I switch the function and control keys on my laptop? and Intercepting the Fn key on laptops) Numerous folks indicate that Windows doesn't register the Fn key…
Howiecamp
  • 1,598
20
votes
9 answers

Super key to pause, mute the microphone, and mute speakers in windows

How can I mute the microphone using AutoHotkey? Here's why I need it: Whenever someone walks in my office, I have to pause the media player. Sometimes, when I'm watching a video, I also have to mute the headphone speakers. And if I'm on a Skype…
Malabarba
  • 8,998
19
votes
5 answers

How to disable only some Windows 10 global shortuts to use them in third-party applications?

1. Briefly I want to disable only some Windows 10 default global hotkeys, to use this hotkeys for run Sublime Text commands. 2. Detail I have Windows 32-bit 10.0.14393. In Windows 10 we have many native hotkeys. 1. I want to disable For example, I…
19
votes
9 answers

How can I use Autohotkey to focus on an existing Google Chrome tab, not a "container" window?

How can I use Autohotkey to focus on an existing Google Chrome tab, not a "container" window? Details Google Chrome seems to represent each window with a container window handle, which contains one or more tabs. The tabs (at least the current one),…
vleeshue
  • 301
1
2 3
91 92