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
1
vote
1 answer

AutohotKey start/stop same key press

This script is suppose to start/stop when a key is pressed. I want that to be the same key. Example I press F3 to start and I press F3 again to stop it. It will slowly count from 0000 to 9999 and will remember where you are when you stop the loop.…
Walorn
  • 151
  • 1
  • 4
  • 12
1
vote
1 answer

AHK WinWait Memory Usage

I have an ahk script I use to enable the Printer button on a Crystal Reports dialog that for what ever reason is not enabled by default when used in Server 2008 R2. Anyways... the issue I am having is the process when running continues to stack…
ATek
  • 815
  • 2
  • 8
  • 20
1
vote
0 answers

AHK combine working 'Drop Down + List Box' w/ 'ListBox w/ double click selection'

First time post & very thankful for all the useful posts on this site. The following are two examples of working code that I have tweaked from this site and ahk's board. Credit goes out to ahk's "garry" for the combined boxes and to this site's…
survargs
  • 11
  • 1
1
vote
1 answer

AutoHotkey don't exit the script

In autohotkey, the code below would let me press alt+1 may times and without exiting the script. !1:: { Send abcd Return } But how do you accomplish the same result with the code below, using WinWaitActive. Can't figure out how to prevent it…
1
vote
1 answer

Send text to non-active window via autohotkey

For my project I need a program that exports text or spreadsheet data to other programs like word, excel, notepad, etc.. The user will set his cursor in the application he wants to export to, then he clicks in my program on "export", which will…
ellow7
  • 61
  • 1
  • 7
1
vote
1 answer

Disable Fn+F4 with AutoHotKey using time

I want to use AutoHotKey to disable Alt+F4 when they are pressed within 0.05 seconds of each other. Otherwise, I'd like it to work as normal. Explanation: My Lenovo Yoga 2 Pro has alternate functions for the function keys. For example: "F3" is…
Bort
  • 493
  • 1
  • 8
  • 26
1
vote
1 answer

AutoHotkey to use clipboard info to open files in Word works in Win8 but not in Win7

I created an AHK macro for a colleague. I have Windows 8; she has Windows 7. She has two "pending work" folders, one for documents and the other for audio files. The (text) file names in the documents folder correspond to the file names in the audio…
HappyNanaMO
  • 309
  • 1
  • 3
  • 18
1
vote
1 answer

Autohotkey: How to determine which screen the taskbar is on?

I want determine with Autohotkey which screen the taskbar is on? If you want to know why, of course, tell ichs gladly.
SL5net
  • 2,282
  • 4
  • 28
  • 44
1
vote
2 answers

AutoHotKey - Receive content from an array using a variables' integer as the index

I want to receive a string from an array using a variables' integer as the array index. But it is not working. Attempt 1 ; Suspended | 0 = No, 1 = Yes global Suspended := 0 global SuspendedMsg := ["The script has been paused.","The script has…
Dean
  • 301
  • 1
  • 3
  • 13
1
vote
1 answer

AutoHotKey - Listen to string after PrintScreen button is pressed?

I want my script to listen to the string I will enter after the PrintScreen button is pressed. For example, if I press the PrintScreen button and type "paint" afterwards, it should open MSPaint. If I however type "photoshop", it should open…
Dean
  • 301
  • 1
  • 3
  • 13
1
vote
1 answer

Simple keypress script with loop in Autohotkey

Whenever you press w you get into a loop that press e around every 10 seconds. Another button has to be pressed to get out of it again at any moment (and making it possible to start over again). This is what I have so far: w:: Loop { Send,…
user3604398
  • 31
  • 1
  • 1
  • 3
1
vote
1 answer

modify hosts file with autohotkey without running as administrator

In C:\Windows\System32\drivers\etc, I have the standard hosts file In C:\Windows\System32\drivers\etc, I have a file named hosts-backup.txt Using autohotkey, when I press `abc1, I'd like to replace the hosts file with the contents of the file named…
Wesley Smith
  • 19,401
  • 22
  • 85
  • 133
1
vote
1 answer

Randomize characters in string?

unfortunately I am struggling a bit with what I thought would be an easy task. I am writing an autocorrect in AHK for words I frequently mistype, and instead of writing every possible way to write every word incorrectly I have written a list with…
Kraken
  • 11
  • 1
1
vote
1 answer

How can others connect on my AHKsocket winsock server? External IP?

Using AHKsock (AutoHotkey), I built a minimalistic client-server system with AHKsock_Connect, AHKsock_Send and AHKsock_Listen on both sides to communicate with each other. It works and I can send messages back and forth, if I connect to the server…
phil294
  • 10,038
  • 8
  • 65
  • 98
1
vote
1 answer

Autohotkey - ControlClick inside window

I have the following ahk script to run C&C Generals: #SingleInstance ignore CoordMode, Mouse, Relative Run C:\Users\william\Desktop\Generals.lnk a::Left s::Down d::Right w::Up Loop{ sleep, 500 } Until WinExist("ahk_exe Generals.exe") sleep,…
botenvouwer
  • 4,334
  • 9
  • 46
  • 75
1 2 3
99
100