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
4
votes
2 answers

How to obtain textual contents from a window

I have a window that displays a book. In two smaller boxes below, there is page number and volume information of the book that is open. I can get that information easily as follows: ControlGetText, volume, ThunderRT6TextBox3 ControlGetText,…
Khalil
  • 311
  • 5
  • 16
4
votes
1 answer

How do I add a wait period in AutoHotkey?

I have this script for a game ~Rbutton & M:: SendInput t You have the right to remain silent. Anything you say can and will be used against you in the Supreme Court of San Andreas, 2nd District.{enter} t As by the laws of San Andreas,you…
lramos15
  • 491
  • 2
  • 4
  • 8
4
votes
4 answers

Shift Key Training Wheels and Shift Parenthesis Remap

I'm looking to use AutoHotKey to modify the functionality of my shift keys. The functionality is described in Steve Losh's Blog entry here. Specifically, I'd like my shift keys to do the following: If LShift or RShift is pressed and released in…
Mike Myers
  • 51
  • 2
4
votes
2 answers

Can AutoHotKey toggle keymapping?

So I'm trying to write a simple script in AutoHotKey that will use NumLock (which I have mapped to the capslock in my registry) as a toggle to turn my directional keys into the numpad nab keys. My script is as follows: GetKeyState, state, NumLock,…
4
votes
2 answers

Creating a script that fills in form values and submits

I have to submit a form 1000 times to create objects for a website. They have given us access to do so, but no easy way to POST the data without using their website's form. The form has these 4 inputs: Textbox name = login Textbox name =…
flip66
  • 341
  • 2
  • 5
  • 17
4
votes
3 answers

How to increase input time between keystrokes using AutoHotKey

I'm using an AutoHotKey script in Windows 7 to send the contents of the clipboard as a series of keystrokes. I'm very new to AutoHotKey, but I was wondering if there was some way to adjust the time between each keystrokes that it sends. Currently,…
wickstopher
  • 981
  • 6
  • 18
4
votes
1 answer

Autohotkey wrong keystrokes sent to console

I am trying to understand this bug and I am looking for a workaroud. Using this script: #NoEnv #SingleInstance force SendMode Input ;Alt+t to send keystrokes !t::Send, /[] It send the correct keystrokes /[] to all windows but the windows console…
niroyb
  • 114
  • 6
4
votes
4 answers

Autohotkey - Send default behavior if condition not met

In Autohotkey, how can I make NumpadDot double-click if Foxit Reader is active, otherwise send a normal NumpadDot? My (broken) attempt: NumpadDot:: SetTitleMatchMode 2 ; allow partial titles IfWinActive, Foxit Click 2 else Send…
mellow-yellow
  • 1,670
  • 1
  • 18
  • 38
4
votes
2 answers

Creating an AutoHotkey entry that ends in a colon

I have a weird typo that I keep making over and over, and instead of actually working on my typing skills, I want to edit my AutoHotkey script to compensate for this. sometimes when I type the capital I I hit the : button and type "I:" and I want…
4
votes
3 answers

AHK to simulate ctrl + alt + break to exit remote desktop full screen mode

I want to use AHK to simulate Ctrl + Alt + break. The below code does nothing. I have also pasted the key history with first using the Num - and then actually pressing the set of trio keys. The AHK key doesn't work while the actual pressing of key…
suman upadhya
  • 41
  • 1
  • 2
4
votes
4 answers

How to disable keyboard remap if a modifier key is down?

I'm using a different keyboard layout, using AHK's qwerty to colemak script. It remaps letters to different letters. How can I disable it when either the ctrl, alt, or windows key is down. This way hotkeys like ctrl+s to save should still…
Farzher
  • 13,934
  • 21
  • 69
  • 100
4
votes
2 answers

Open and close program with the same hotkey (Autohotkey?)

I am trying to open and close a program (e.g. Notepad) with the same hokey in Windows, let's say Strg+Alt+X. So, when the program is closed I wish to open it with "X" and when it is open I wish to close it with "X". This is really easy to do with…
Jörg
  • 239
  • 3
  • 7
4
votes
1 answer

Send hotkey to minimized chrome window

I need an autohotkey script that can send alt+backspace to a minimized chrome window (without maximizing it). Basically, I have a web player app I've made and on the player window which opens in a smaller window, you can press alt+backspace and it…
Highstrike
  • 462
  • 3
  • 14
4
votes
1 answer

Regex match of apostrophe in autohotkey script

I have an autohotkey script which looks up a word in a bilingual dictionary when I double click any word on a webpage. If I click on something like "l'homme" the l' is copied into the clipboard as well as the homme. I want the autohotkey script to…
keith.uk
  • 75
  • 4
4
votes
1 answer

REGEX - collapse any combination of non-alphanumeric symbols into a single "."

I desire to collapse any combination of TWO OR MORE non-alphanumberic characters into a single "." I already have one filter before this one, so that the only 3 such characters I need to worry about are "_", "-", and "." This is what I came up…
dwilbank
  • 2,470
  • 2
  • 26
  • 37