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
3 answers

autohotkey trigger on windows+shift+right brings up start menu when key is released

If I have a command that fires on Windows + Shift + Right, the problem is that when I release the keys the start menu pops up. You can see it even with this script which should do nothing. Is there a way to stop that from…
Derek
  • 7,615
  • 5
  • 33
  • 58
3
votes
2 answers

AHK COM Passing Variable through File Path when saving

I would like the file to save as using the variable STYLE which the user enters at the beginning. I also need help sending the data to a printer with variable amount of copies. From here on is where I need…
Kumar Patel
  • 83
  • 2
  • 9
3
votes
3 answers

AutoHotKey - Resizing Windows

I currently have a HTPC connected to a plasma in my living room, and I've had a few issues with image retention. While browsing the web, etc. for an extended period of time I'll run into the issue. However, it looks like it should be relatively…
Ruby Novice
  • 33
  • 1
  • 3
3
votes
2 answers

Is there a way in AutoHotkey to know between a mouse click and touchscreen click

I have two monitors one of them is a touchscreen. do somebody now a simple code in autohotkey. that you received a value, between a mouse click and a touchscreen click I use for example Photoshop application on my main monitor 1 And I have a…
3
votes
1 answer

Autohotkey: Send only once when held down

Here's what I'm trying to do. I want to press the Left shift button down and have it send a double mouse click, then do nothing until the left shift is released, then upon release, send a double click again. Here's what I have so far: LShift::Click…
chen
  • 187
  • 5
  • 16
3
votes
3 answers

Can I list several keys to perform the same action? [AHK]

AHK allows to bind keys, that is us a::z t fire 'z' whenever 'a' is pressed. What if I want to fire 'z' whenever 'a', 'b', or 'c' is pressed? I can obviously repeat my code: a::z b::z c::z I can probably use a Gosub like a::Gosub,…
user6465079
3
votes
2 answers

Is there a way to assign a multi-line string to a object property?

I know that you can assign a multi-line string to a variable like this: MyVar = ( this is a string with multiple lines ) But is there a way to assign the above string to an object property? I tried doing it like this but I received an…
Cave Johnson
  • 6,499
  • 5
  • 38
  • 57
3
votes
2 answers

AHK Populate an Array of Regex Matches

In AHK i'm trying to populate an array of matches in the style of match[i]. Here is what I have so far: string = "red" RegExMatch(string, "O)([a-z])", Match) MsgBox % Match[1] . Match[2] . Match[3] However, it merely returns r instead of red. Any…
TiredofGoogling
  • 197
  • 1
  • 2
  • 9
3
votes
2 answers

Accept UAC prompt verification with Autohotkey

I'm running an application using an Authotkey script, which requires UAC. I've read some post about it, but I can't get a clear answer explaining why it seems not possible to accept the prompt using Autohotkey. My code is something like…
Sebastian
  • 1,835
  • 3
  • 22
  • 34
3
votes
1 answer

How to run an autohotkey script in Python (2.7)

I'm trying to run an autohotkey (ahk) script in Python 2.7 but nothing seems to work. All online sources I've found are either outdated or overly complicated. Has anyone found a way of doing this? I just want to run a couple of simple scripts that…
Jonathan H
  • 141
  • 1
  • 12
3
votes
2 answers

Autohotkey - convert clipboard formatted text to plain text

How to convert clipboard formatted text to plain text with Autohotkey on just a few programs only? Let say on google chrome? OnClipboardChange: if (A_EventInfo = "1") { Clipboard=%Clipboard% } return This works perfect, but how to limit it to…
Tomas
  • 123
  • 2
  • 14
3
votes
1 answer

Windows automation: Emulating menu item events

I love automating daily tasks using AutoHotKey and Python. I like using my keyboard instead of my mouse, so I tend to make hotkeys with AutoHotKey that do various actions that you'd otherwise need to use the mouse for, or that you'd need to use too…
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
3
votes
1 answer

Launching an exe from node.js, and send data between them

Ok, so I'm creating a webpage using socket.io in node.js. This works great, and data is going to each device as it should. Now i want to expand, and use node.js to control my pc. I've read this: Child Process and gotten to this code wich runs an…
Chris
  • 33
  • 4
3
votes
2 answers

AHK: remap numeric keypad with Numlock On so it behaves like numeric keypad with Numlock Off

I'd like to remap the numeric keypad with Numlock On to behave like the numeric keypad with Numlock Off, including being able to extend the selection with Shift/Ctrl held down. The problem I have is the following Numpad8::Up Doesn't have correct…
stevieg
  • 652
  • 4
  • 14
3
votes
2 answers

Autohotkey hotstring doesn't work with colon

doc = Nokogiri::HTML(html.read) ::hotstring:: '< this doesn't work ( Nokogiri::HTML ) When I try to make that line as a hotstring in Autohotkey, it does not seem to work. I tested some variations and realized that the colons ::, when included,…
1tntla
  • 43
  • 4