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
16 views

AutoHotKey ceased to work properly…

I have been a happy user of AutoHotKey for over a year. Not a problem. Ever. Until about two weeks ago. Sometimes after I run it, it doesn't function at all. No error message or anything it just doesn'...
0
votes
1answer
13 views

Can a vim mapping trigger an Autohotkey macro?

I would like to trigger an Autohotkey macro using a vim mapping, is this possible? For example, to create a normal mode vim mapping in vim to enter CTRL-J, then use that to trigger Autohotkey. In ...
0
votes
2answers
74 views

How to add some value in an excel sheet without opening and closing it using com object in autohotkey?

I am trying to use these codes to add some values in a cell without opening an excel sheet and closing it- f1:: Xl := ComObjCreate("Excel.Application") Xl.Workbooks.Open("c:\Users\Manoj Aggarwal\...
-1
votes
1answer
26 views

How can I encrypt/decrypt an Autohotkey ( .ahk ) file on the fly?

I use autohotkey to put different password combinations into different apps or devices I access. I also have an RSA token for additional authentication. Using an .ahk file is not very safe security ...
0
votes
2answers
82 views

Autohotkey script for alt+F4

I need a way to create a shortcut icon on the Desktop that when clicked, emulates the press of ALT+F4. I was thinking at AutoHotKey, I have bound the alt+f4 combination to F12, but then I can't manage ...
0
votes
2answers
44 views

Change the picture from the icon tray

I've searched many threads about this but I couldn't understand them... Is it possible to change the H icon to something else as well as S(suspend) which will switch to another image if it got ...
0
votes
2answers
6k 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} ...
0
votes
1answer
12 views

Mute/unmute only a specific program

m::Send {Volume_Mute} is for the Master Volume... I need code only for mute/unmuting specific program... IfWinExist ahk_class Chrome_WidgetWin_1 { m::Send {Volume_Mute} } won't work...
0
votes
1answer
17 views

autohotkey simultaneous keystrokes with repeats

I got this right now settitlematchmode,3 SetKeyDelay, 350 ^o:: $stop := 0 Loop, { controlsend,,{a 30},ahk_pid 12144 controlsend,,{a 30}{s 30},ahk_pid 12144 controlsend,,{s 30},ahk_pid 12144 ...
-1
votes
2answers
13 views

Auto Hotkey replacing keys

Never really used AutoHotkey, or done too much programming but I was hoping somebody could help me create a script to do the following; When CTRL+ALT+DEL is pressed > send CTRL+ALT+END instead.
0
votes
1answer
12 views

AHK - prevent defined EndChar from executing as a key

Given the template .ahk file below: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. ...
0
votes
2answers
193 views

AutoHotKey - Esc:: ExitApp not working

I have a long AHK script with lots of simple {tab} and {down} etc... If something goes wrong, I need to terminate the script. Googled, found lots of answers, mostly saying: put esc::ExitApp at the ...
0
votes
0answers
27 views

Autohotkey - How to adjust volume only of a specific program?

I want to control volume of a specific program and not the whole master volume. I found THIS thread that has code for controlling a specific program. This is the whole script: SetTitleMatchMode, 3 ...
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 ...
0
votes
1answer
29 views

make tab a modifier key

Is it possible to set TAB as a modifier key? I want to bind tab-h/j/k/l to vim-style movement keys. Seems there is no mention of adding additional hotkeys in the Hotkeys documentation page. This ...
0
votes
1answer
42 views

Autohotkey script suddenly stopped working

This script just works awhile ago, but now it doesn't. What the script does is to disable both the mouse pad and usb mouse after I press the middle button of my usb mouse... but now it doesn't. Is ...
2
votes
3answers
2k views

Switch Ctrl and Alt with AutoHotKey without messing up the Alt-Tab switcher?

I want to switch the Ctrl and Alt keys in Windows XP. I created an AutoHotKey script that contains the following: LAlt::LCtrl RAlt::RCtrl LCtrl::LAlt RCtrl::RAlt This works, but the only problem ...
1
vote
1answer
20 views

Use the same shortcut when Ctrl Key is pressed down in AutoHotkey

I have a basic keyboard with no multimedia keys. So I created a simple AutoHotkey script to increase, decrease & mute my system volume: ^F10::Send {Volume_Mute} ^F11::Send {Volume_Down 5} ^F12::...
0
votes
1answer
29 views

Hotkeys containing shift not working in AHK

I have AHK running in a virtual machine (windows 10) under VMWare Fusion on my mac, with a Danish keyboard. Hotkeys such as ½::$ !'::@ are working fine (for making typed keys match what's printed ...
0
votes
3answers
92 views

Autohotkey: Google Chrome doesn't react for Send, ^+y

Here is an extension for Google Chrome with hotkeys you can not change. So I write a script to remap default hotkey Ctrl-Shift-Y to Alt-1. (Default header here is omitted) #IfWinActive ahk_class ...
0
votes
0answers
23 views

Getting a timestamp from VLC into a word processor

I'd like to be able to get the current playing time of a file in VLC media player and insert it as a timestamp into a word processor - so something like a hotkey combination that will output "[HH:MM:...
3
votes
4answers
5k views

How to fix AHK to send keys to RDP fullscreen?

How do you get AutoHotKey hotkeys to work with Remote Desktop in fullscreen on Windows 7?
4
votes
4answers
2k views

Why is notepad++ blocking my autohotkey shortcuts?

I have a series of keyboard shortcuts defined in my autohotkey script. Currently, none of them work whenever notepad++ has focus. The script is loaded as usual. The keyboard shortcuts (mostly stuff ...
0
votes
1answer
39 views

Autohotkey does suspend on its own

This is the whole script: capslock:: Send {Media_Play_Pause} F2:: Suspend return The problem is after I press capslock, the media player (media monkey or windows media player) will pause as well ...
12
votes
2answers
2k views

Control Chrome completely with the keyboard

Chrome has generally great keyboard support, but there are a few things that you can't do with the keyboard in Chrome: Open the previous page in a new tab. (Ctrl-click on the back button does this, ...
1
vote
2answers
39 views

AutoHotkey script to open start menu with CMD+Space on Mac keyboard on Windows 10

I'm usually a Mac user, therefore I am accustomed to, and prefer, Mac style shortcuts. I'm using an Apple keyboard on my work PC, and I've installed SharpKeys to swap CTRL and CMD keys around. Now, ...
4
votes
1answer
892 views

How to send/type a colon

I wish to send the following string to cmd: C:\xampp\mysql\bin\mysql.exe -u root The problem is to send the colon, I tried Send, c:Send, \xampp\mysql\bin\mysql.exe -u root and Send, c{:}Send,...
2
votes
3answers
182 views

How to change ctrl key to AltGR key by editing registry?

I'm changing the Caps key to Ctrl by using this registry key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "ScancodeMap"=hex:00,00,00,00,00,00,00,00,02,00,00,00,...
1
vote
1answer
87 views

How to get key name with AutoHotkey

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 ...
0
votes
1answer
186 views

Disabling multiple Middle-clicks in quick-succession with AutoHotkey

I open new links in Chrome with middle clicks. But lately I've been noticed the links opening twice or more tabs when I do a middle click. This might be me inadvertently clicking twice when I intend ...
1
vote
1answer
85 views

How to create shortcut for Control Tab with Autohotkey

What would be the script in Autohotkey in order to create a keyboard shortcut that presses Control plus Tab in order to move along tabs of a dialog?
79
votes
6answers
136k views

How can I open a command prompt in current folder with a keyboard shortcut?

How can I open a command prompt in current folder with a keyboard shortcut in Windows 7? Is there any way to implement this? I think Autohotkey could do this, but don't know how.
1
vote
2answers
81 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
25 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
87 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 ...
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
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
88 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
40 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
votes
1answer
114 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
47 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 perform......
5
votes
1answer
136 views
0
votes
3answers
106 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 ...
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
466 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
78 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
30 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
30 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 ...