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

Getting milliseconds in AutoHotkey

How do I add milliseconds to the AHK script below? I have been researching and can't find a way - or better yet, don't understand some of the solutions posted in SO... nor do I know enough about any kind of programming. Can you help? How would I…
user3182310
  • 63
  • 1
  • 6
3
votes
1 answer

How "stream" a part of my screen to another part

So I have two big monitors. So I want to "stream" a small important part of the right monitor to the left. I have a specific part like 100x200pixels to the right of my screen I want to show at the very left. I can do this but in a very ineffektive…
Harpo
  • 187
  • 1
  • 10
3
votes
1 answer

AHK Parse multiple xml elements in sequence into [.txt] file

I've gotten to where I can get the element values I want and append them to a txt file. The problem I'm having is appending them sequentially. An excerpt/sample from my xml file is:
JoeViking
  • 55
  • 1
  • 6
3
votes
2 answers

How to activate/deactivate AutoHotkey script based on active input method?

I have an autohotkey script that I use only in conjunction with my Japanese input. I only have one input language on my computer (Japanese), and I type in English by using the Alphanumeric setting (I'm not switching to English language, it's still…
user482110
  • 31
  • 2
3
votes
1 answer

Add to date or time in AutoHotkey

I was looking for an inbuild ahk function that allows the user to add days, months, years or even time to an existing day thus converting it correctly to a new month if the day count reaches 32. I didn't find anything, so I came up with this little…
Dean
  • 301
  • 1
  • 3
  • 13
3
votes
1 answer

AutoHotkey send {Del} not work in explorer on Win10

I want to use Alt+d to trigger Delete. !d::Send, {delete} This works almost everywhere except in explorer. Nothing happens when select a file and press Alt+d. Why is that? Environment: latest AutoHotKey, Windows 10-64bit
aj3423
  • 2,003
  • 3
  • 32
  • 70
3
votes
1 answer

Digit's Values not getting extracted from Dictionary

I have a dictionary that contains Letters and Digits and i can get the values of the letter keys just fine but not the ones from digits even though they're enclosed in " . It isn't important for the question but just in case you're wondering what…
Bluescream
  • 261
  • 1
  • 8
3
votes
1 answer

Auto Hot Keys with coding text

I would like to do an auto hot key script that will paste: { get; set; } for C# Is this possible or does it not know how to handle the spaces, {, ;? I've tried the following, but it does not work: ^NumPad3:: SendInput, { get; set; } …
tvb108108
  • 398
  • 3
  • 19
3
votes
3 answers

How to use Autohotkey hotstring in visual studio code?

I can use it in other applications such as notepad, but it just won't work with vs code.It seems that there is a bug or did I do any thing wrong? For example ::td::TODO and every time I will get a different result: AHK BUG How to fix this?
3
votes
2 answers

Is there a way to make multiple windows "active" at one time? in Windows?

Let's say a program that I created, an on-screen keyboard. I want to make it active so that it can receive my keyboard inputs, even while another program such as Google Chrome, or Notepad.exe is receiving my keyboard inputs as well. I mainly want my…
3
votes
1 answer

How to read output of a command in Git Bash through Autohotkey

I am trying to send a command to Git Bash terminal through Autohotkey but unable to find a way to read its output. Is there a simple way for it? I am sending this Run, C:\Users\Unknown\AppData\Local\Programs\Git\git-bash.exe sleep, 2000 Send cd…
3
votes
1 answer

Why would Autohotkey script suddenly stop working?

We have an AutoHotkey script that was working for months or years and has suddenly stopped working this week. I restored a copy of the script from January and confirmed that it is no longer working either. We did have some Windows updates applied…
sandeaj
  • 101
  • 2
  • 14
3
votes
2 answers

How to find OneNote windows 10 in AutoHotKey's if winexist?

I'm trying to build a script that allows me to open and use OneNote (The store app not OneNote 2016) with a hotkey, but I would like to use the same hotkey to switch the the app from another window. I have accomplished this with many other programs,…
3
votes
1 answer

How to make autohotkey work in "OneNote for Windows 10" app (not OneNote)?

I am trying to add a program specific shortcut, i.e. a shortcut to be used inside OneNote App only, and not the short cut for the opening of app itself. Here is how the present script is: #NoEnv ; Recommended for performance and compatibility with…
Sensebe
  • 194
  • 2
  • 13
3
votes
2 answers

What to do when the application I wrote (its setup file) is flagged as virus/trojan?

I wrote a download manager (in the AutoHotKey language) for a client and it gets flagged by a minority of virus scanners (11% of the scanners used on VirusTotal) as being a trojan, malware, dropper, data stealer, etc. Since my software is none of…
Quinxy von Besiex
  • 976
  • 11
  • 21