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
8 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
1answer
14 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 ...
0
votes
1answer
10 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...
-1
votes
2answers
12 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
10 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
1answer
24 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
0answers
25 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 ...
0
votes
1answer
28 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
37 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 ...
0
votes
1answer
28 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 ...
1
vote
1answer
19 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
0answers
22 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:...
0
votes
2answers
76 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
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 ...
1
vote
2answers
38 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, ...
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 ...
1
vote
1answer
84 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?
2
votes
3answers
176 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,...
0
votes
1answer
24 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
85 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 ...
1
vote
1answer
79 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
86 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
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 ...
-1
votes
1answer
111 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
46 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......
0
votes
3answers
104 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 ...
0
votes
1answer
76 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 ...
1
vote
1answer
39 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.
2
votes
0answers
29 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 ...
1
vote
1answer
192 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. ...
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 ...
2
votes
2answers
87 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
27 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
2answers
77 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
66 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
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
37 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
141 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
57 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
67 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 ...
0
votes
0answers
64 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
42 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 ...
0
votes
1answer
125 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 ...
0
votes
1answer
45 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 ...
0
votes
1answer
63 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.
1
vote
2answers
65 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
22 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
40 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
37 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 A-10C\bin\Launcher....