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 ...

learn more… | top users | synonyms (2)

0
votes
0answers
10 views

Autohotkey + custom Latin layout + non-Latin layout

Problem in which neither VK virtual keys nor ScanCodes don't help. Custom Latin layout is default input system. When switching from custom Latin layout to non-Latin layout, in non-Latin mode ...
1
vote
1answer
51 views

Issue with AHK mapping

I'm learning about AutoHotKey The first effort has worked fine !+Up:: MouseClick, left, 340, 65 return This means when I press ALT and shift with the up cursor, my mouse clicks at given ...
0
votes
2answers
5k views

AutoHotKey - Hold a key down

I have an AutoHotKey script that should hit F3 when I hold down Ctrl, and hit F2 when I release Ctrl. My script currently: $ctrl:: Suspend, On Send, {F3} While (GetKeyState("Ctrl",P)) { } Send, {F2} ...
3
votes
6answers
2k views

How can I use a hotkey to access the link address in any browser?

Sometimes I need to copy many link addresses and I would like a hotkey for this. As far as I know there is no browser that supports that out of the box. Is it possible to customize this behavior? I ...
1
vote
1answer
51 views

how to get key name of Auto Hot Key

I want to switch input languages by using Henkan and KanaHira keys, these are implemented Japanese keyboard. vk1Csc079:: PostMessage, 0x50, 0, 0x41E041E,, A ; 0x50 is ...
1
vote
0answers
13 views

Sniff/Capture where windows hotkeys are coming from [duplicate]

There are some shortcut keys on my windows computer that must be coming from some program. I know that I've installed a couple of "productivity" programs, but for the life of me I can't figure out ...
0
votes
1answer
63 views

AHK won't start Vagrant/Cmder on boot/reload?

I have the following AHK script in my startup folder, there's also a few shortcuts before this, they work but this bit doesn't, any idea why I can't startup my dev environment on windows startup? ; ...
1
vote
1answer
31 views

AutoHotKey two keys for one

I'd like to know how to script so that two keys pressed and held in a specific order will press another key. To be specific I'd like to press tab and then q and receive the output of F1.
1
vote
1answer
3k views

How to loop AHK by user input?

Is there a way to loop a certain script using user input with INPUTBOX? The script below runs only once when I click the button for it. Is there any way for the script to popup something where it ...
-1
votes
1answer
69 views

AutoHotKey: copy file from Windows Explorer, paste path to Notepad2

I'm searching for a way to do that. Using ArsClip's Clipboard Bar, I see that when I select a file o Windows Explorer and copy it, its full path is stored on clipboard. If I keep selecting Windows ...
1
vote
2answers
31 views

Remapping “Ctrl Shift Z” as “Ctrl Y” in Excel with AutoHotKey

I'm on Windows 8.1 using MS Excel 2013, and I'm using this AutoHotKey script... $^+z:: SetKeyDelay -1 Send {RCtrl Down}y{RCtrl Up} to remap "Ctrl Shift Z" as "Ctrl Y", in order to ...
5
votes
1answer
119 views
0
votes
3answers
88 views

Keyboard shortcut for creating new file on Windows 7

Can someone please tell me how to create a new keyboard shortcut for creating a new text file? I have installed Autohotkey but I don't know how to specify script. I want to use Ctrl + Alt + N as ...
-1
votes
0answers
42 views

Launching processes while I sleep

I am an absolute newbie to any advanced working with PC, so I need your help and I hope there is someone who can help me. What I need is "something", that would do work for me while I sleep. My ...
3
votes
2answers
3k views

Somehow AutoHotkey doesn't send Alt+keys to a program

I'm using the following AutoHotkey script: Numpad4::Send !f When pressing Numpad4 AutoHotkey is supposed to send "Alt+F" to the program currently opened. Nothing happens however - I've also tried: ...
0
votes
2answers
2k views

Merge two AutoHotkey scripts

I have two functioning scripts. When I combine them, the second doesn't function or causes an error on script 1. Script 1 = A simple menu script I want to assign hotkeys to. Script 2 = A small ...
1
vote
1answer
444 views

How to Remap a Program to lock Windows (Win+L)

I'm trying to remap WinLock to something new. Basiclly i want to remove Win+L to lock Windows and add Win+L to Open a specific program to be opened. Any Help ? Thanks. PS: currently i using #L::Run ...
0
votes
1answer
42 views

Open a new Chrome window with custom URL, then get that same window with Autohotkey?

I'm attempting to open up a Chrome instance with the -app flag, then move that window around and generally do stuff with it. Here's my code: #!NumpadMult:: { Gui, Show , w260 h150, Window title ...
2
votes
0answers
21 views

Monitor file change in AutoHotkey without a loop or timer

I am interested in having an .ahk file reloaded automatically whenever it changes. The reason is that I am hosting my .ahk files in Google Drive, and so the script may be changed on a running computer ...
13
votes
8answers
30k views

How can I use Autohotkey to focus on an existing Google Chrome tab, not a “container” window?

How can I use Autohotkey to focus on an existing Google Chrome tab, not a "container" window? Details Google Chrome seems to represent each window with a container window handle, which contains one ...
0
votes
1answer
25 views

AutoHotkey activate vb.net ContextMenu

I use a lot of little vb.net programs (made with VBExpress 2010) and a lot of little AutoHotkey scripts, and I really want them to be able to communicate easily. My prime example is a Me.Hide form ...
1
vote
1answer
121 views

How can I launch FireFox with no window frame or tabs / address bar?

I am looking for a way to launch Firefox from a script or command line without any window frame, address bar, or tabs. I'd like to be able to launch this at a given window size and position on screen. ...
2
votes
2answers
83 views

Get Mac-like symbol shortcuts on Windows

So I recently switched from being a life-long Mac user to building my own Windows 10 desktop. There are plenty of things I like but one thing I feel like I'm greatly missing is the ability to easily ...
0
votes
0answers
24 views

AutoHotKey - Send mouse scrolls to active window

What's puzzling me for a while now is how to send a mouse scroll up and down to the active window with AutoHotKey, regardless of the position of the mouse. The examples and information that I've ...
1
vote
1answer
44 views

Generic way to remap every media button

Today I tried to remap some keyboard media keys to more useful functions and failed to do so. The problem The manufacturer doesn't provide a utility to bind and execute custom commands. My ...
0
votes
1answer
23 views

how to select emailadress or www link with doubleclick in autohotkey?

how to select and copy an emailadress or www link by doubleclick at once into clipboard with autohotkey? eg mailadress in a text part of any program. Thanks for any advice Andreas
1
vote
2answers
50 views

Is there a way to exclude multiple titles from GroupAdd?

When I am using a specific program (Dolphin), my Esc hotkey closes it entirely, but I want different functionality for specific (sub-)windows. So far, I've been using #IfWinActive combined with ...
0
votes
1answer
547 views

Autohotkey when station locked

I'd like to be able to use hotkeys to run scripts when the screen is locked. I have: ^!p::Run, D:\path\to\my\script.bat But if the computer is locked it won't run. I'm running Win7 64.
1
vote
1answer
312 views

Binding Shift to x using AutoHotkey

I'm trying to switch my left shift+ button with my x+ key on the keyboard. I tried Lshift::x but what happened was BOTH keys now had the functionality of just x. I looked at Problem with rebinding ...
0
votes
1answer
24 views

Few shortcuts and start button become unresponsive for a few seconds after startup

Right after Windows (8.1) starts, I'm able to open folders using the shortcuts I set up in an AHK script, for two to three seconds. But then, few keys become unresponsive: the start button the ...
0
votes
1answer
77 views

Display turns on after I turn it off with AutoHotkey command

I use these two shortcuts to turn off the display: Launch_Mail:: #T:: SendMessage, 0x112, 0xF170, 2,, Program Manager However, not infrequently, the display turns back on instantly after I use this ...
25
votes
4answers
45k views

Where can I find a macro recorder for Autohotkey? [closed]

I used a macro recorder for AutoHotkey in the past, but now I can't seem to find it at all.
0
votes
3answers
5k views

AutoHotkey: how to send contents of clipboard as key presses?

I'm making an autohotkey script to run highlighted text through a calculator, and i need to send the contents of the clipboard as a sequence of keypresses, since the calculator doesn't really support ...
0
votes
1answer
30 views

Switching tabs in ConEmu with AHK

I'm trying to get ConEmu to switch tabs using custom shortcuts using AHK. ConEmu has two sets of shorts for next/previous tabs. They are ctrl+tab/ctrl+shift+tab and win+q/win+shift+q I tried the ...
1
vote
1answer
110 views

Search in AutoHotkey for a window title that contains a string, but does not contain another string

I have a script that activates sublime text window: #s:: IfWinExist ,Sublime { ifWinActive { WinActivatebottom ,Sublime } else { WinActivate } ...
0
votes
1answer
40 views

A Windows application : Show live output of results(stdout?) of prespecified command

I am looking for a application that works in the following manner : The application shows/has an input area/box. And it runs a pre-specified command/application (using the input as paramas) and ...
0
votes
1answer
59 views

How do I swap ALT and the Windows key in one keyboard but not another?

I am running Bootcamp on a Macbook Air and I swapped Alt with the Windows key so ALT. I also have an external Windows Keyboard but this one has the keys swapped now too. I would like to swap the keys ...
1
vote
2answers
62 views

Move mouse pointer to typing area

Windows contains settings to hide mouse pointer while typing, but doesn't contains a settings to move pointer to active typing area. I mean I can switch typing areas by tab, or enter, or alt+tab, etc. ...
0
votes
1answer
146 views

Why am I getting a -3 on an AutoHotKey DllCall?

I am attempting to use IBM's EHLLAPI to interface with their Personal Communicator terminal emulator. I point it to the location of the API, and specify the api name, as such: hllapi(ByRef ...
2
votes
2answers
1k views

Easily type Unicode characters using AutoHotKey?

For example, I want to be able to type → (right arrow) using AutoHotKey's text replacement feature, and this is what my script looks like: ::|rarr::{ASC 2192} So when I type |rarr in my text editor ...
0
votes
0answers
46 views

AutoHotkey scrip for horizontal scrolling in excel not working for graphs

I am using this script for horizontal scrolling using shift + mousewheel for excel: #IfWinActive, ahk_class XLMAIN +WheelDown::ComObjActive("Excel.Application").ActiveWindow.SmallScroll(0,0,3,0) ...
0
votes
1answer
40 views

How to break an autohotkey loop when app closes

I have an autohotkey to enter some keystrokes repeatedly into an old script. I don't know beforehand how long it will go on, so I have this script: #NoEnv ^m:: Loop { if (BreakLoop = 1) break ...
18
votes
2answers
44k views

Swapping Function (Fn) and Control (Ctrl) Keys on Lenovo ThinkPad W500

I'd like to swap the Fn and Ctrl keys on my ThinkPad W500 (like many others! See: How can I switch the function and control keys on my laptop? and Intercepting the Fn key on laptops) Numerous folks ...
0
votes
1answer
41 views

How to change hotkey when pressed using AutoHotKey?

Basically, I'm looking for a way to, when a key combination is pressed, one set of hotkeys is activated, when that key is pressed again, a different set of hotkeys is activated, and the script is in ...
3
votes
1answer
820 views

How do I make an AutoHotkey script work in a VMware virtual machine only?

I'm running VMware Workstation 9 on Windows 7 and I wonder how do I make an AutoHotkey script (which does some key remapping) work only when the input is grabbed by a VMware virtual machine?
0
votes
1answer
60 views

What is the best way to automate Windows at a high level? [closed]

I have been using AHK for a while, but since it is mainly for hotkeys I am wondering if there is something more powerful out there.
0
votes
1answer
21 views

Autohotkey right-side prefix out-of-bound effect, correct behavior?

I encounter a problem, illustrated as in this little snippet: #IfWinActive ahk_class Notepad ^a:: MsgBox, Ctrl+A press in notepad #IfWinActive #IfWinActive ahk_class ConsoleWindowClass >^a:: ...
1
vote
0answers
37 views

AutoHotkey autoclick and save images with custom picturename every time [closed]

has someone an idea for a autohotkey script which clicks always on the same button and position go to coordinates over a picture make right click and press save as graphics give in a custom filename ...
0
votes
1answer
36 views

Autohotkey and DCS A-10C flight sim

I've set up Autohotkey to start DCS A-10C but when starting, it throws an error that it can't open .\MissionEditor\MissionEditor.lua Autohotkey Run, "D:\GAMES\Eagle Dynamics\DCS ...
0
votes
2answers
31 views

Autohotkey angle bracket

Hi I start use autohotkey, I have a simple script to run cmd and execute some command, like this: echo ^Q>COM5 Autohotkey script: run cmd.exe WinWait, ahk_exe cmd.exe ; Send ECHO ...