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.
  11. Create simple GUI tools.

AutoHotkey also has a very friendly and helpful community.

Resources

4574 questions
3
votes
0 answers

Use Julia with Notepad++ and AutoHotkey

In practice I prefer to write R codes with Notepad++ and NppToR, where you can use the default shortcut keys to achieve the following functions: F8: Pass line or selection Shift+F8: Pass to point of cursor (from the very beginning)…
John Stone
  • 635
  • 4
  • 13
3
votes
2 answers

Run AHK script as admin on startup

I have four AHK scripts which run on startup, as they have shortcuts placed in my startup folder. How can I make them run as admin? What I've tried: I've tried changing their properties to be run as admin, but they just don't run (when I do…
Sam
  • 157
  • 1
  • 10
3
votes
1 answer

Using AutoHotKey to detect focus in Git Gui

I'm trying to write an AutoHotKey script that will activate my Git Gui window, refresh it, and put the focus in the commit-comment text box. Activating and refreshing are no problem, but I'm not having any success changing focus. AutoHotKey doesn't…
Joe White
  • 94,807
  • 60
  • 220
  • 330
3
votes
1 answer

Autohotkey Script to reliably bring an application to the forefront

I'm looking for an AutoHotKey script (or anything else for that matter) that will allow me to associate bringing an application to the forefront with a keyboard shortcut (preferably a Function Key).
Toby Allen
  • 10,997
  • 11
  • 73
  • 124
3
votes
6 answers

Create Lotus Notes hotkey/shortcut key for "reply to all with history"

Because I like to make common actions quick to access, I'd like to define a hotkey, e.g. Alt+L to do "reply to all with history", to act on the selected email. I'm using Lotus Notes 8.5 under Windows. Currently I have to either click the Reply…
Dean Hill
  • 4,369
  • 6
  • 31
  • 35
3
votes
1 answer

Is there a way to embed an excel file with my executable (exe) file?

I've created an AutoHotKey Executable file to open my macro enabled excel. I want to share only the exe file (not the excel file) to my peers. Is it possible ?
3
votes
2 answers

How to install/run autohotkey without admin privileges?

I followed this tutorial: http://www.thenickmay.com/articles/how-to-install-autohotkey-without-admin/ At Step #6, I opened AutoHotkeyU64.exe and it opened up the help file for AutoHotKey. Then I went through the tutorial and tried out the script…
GT.
  • 764
  • 1
  • 8
  • 30
3
votes
1 answer

AutoHotKey Modifier Symbol "+" For SHIFT Does Not Work

I want to write an autohotkey script that lets me enter a comma when I hit SHIFT + Numpad . The modifier symbol for SHIFT is the plus sign +. I wrote this +NumpadDot:: Send, , return But I find this does not work. If I change the modifier to CTRL…
Ken
  • 157
  • 1
  • 1
  • 6
3
votes
1 answer

How can I use comma(,) in function like hotkey?

I want to use comma in Hotkey function, but it is impossible as comma is used to script. I tried {,} and {vkBEsc034} instead of , in my context SendMode, Input #InstallKeybdHook hot>: send, ^{F6} return hot<: send,…
Bogeun Cho
  • 33
  • 2
3
votes
2 answers

More reliable way to Retrieve Play/Pause Status in Media Player Classic - Home Cinema with AutoHotkey?

I've been using the Status text of my MPC-HC window to determine if a video is playing or paused. However, when in Fullscreen mode or when the Status bar is hidden, the Status text does not update. Someone pointed out this bug to the MPC-HC team,…
Kelly
  • 31
  • 3
3
votes
1 answer

Suspend hotkeys while typing into a text field

I have many hotkeys to navigate chrome very efficiently but they get in the way when I try to type anything anywhere. Can't figure out how to have autohotkey respond to a textfield being active or to the cursor caret being in effect I've tried using…
David Chavez
  • 138
  • 1
  • 8
3
votes
1 answer

Why are spacebar events suppressed when running this script?

I made a script to tile windows with my left hand in windows 10, using a dvorak keyboard layout. It works as expected except, it keeps the spacebar events from getting to any program other than the script itself. This is the keyboard log when…
pls
  • 33
  • 4
3
votes
1 answer

VSCode: How to enable links in a webpage in the Webview

vscode.previewHtml got deprecatd in favour of Webview. I updated my ahk extension for vscode using this new API. With hh.exe -decompile Docs AutoHotkey.chm I got a local website version of the main AutoHotkey site. I wanted to show in the second…
3
votes
1 answer

How can I detect the simultaneous pressing of two keys in autohotkey?

I am struggling to find a solution that detects the simultaneous pressing of f and j so that if only f or j is pressed, the current application also receives an f or an j but when I press f and (within a short time period) j simultaneously that the…
René Nyffenegger
  • 39,402
  • 33
  • 158
  • 293
3
votes
2 answers

How to remap keys after Alt+Tab/Ctrl+Tab while Alt/Ctrl is currently being held?

I am trying to use VIM a lot in my day to day life, and I prefer not to move my hands away from the home row. That being said I do alt tab/ctrl tab a lot, but its tedious to keep pressing TAB to cycle applications. When you press Alt+tab and keep…
Nicolas
  • 179
  • 9