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
2answers
47 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
30 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
12 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
14 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
79 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. ...
-1
votes
0answers
10 views

Listen to device via Line In

I am trying make a script or find hotkey that will allow me toggle the line in audio listen to device to be enable and disable click of button. I found piece of code but I dont know how to use it. ...
0
votes
1answer
18 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
76 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
21 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
35 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
43 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
22 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
26 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
92 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
34 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
52 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
41 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
37 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
60 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
40 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
59 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
56 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
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
34 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
34 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 ...
1
vote
2answers
35 views

Ignore Windows-L key and Send L (unpress Windows key)

I would like Windows-L to behave just like L. I have tried #L::L But this will not unpress the Windows key, so it's kind of a loop and does not do anything. How can I unpress the Windows key? ...
0
votes
2answers
29 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 ...
0
votes
3answers
347 views

AutoHotkey scrolling & middle click & mouse acceleration

Problems Assume a Windows 7 machine, especially a laptop. No mouse driver allows holding down the right mouse button and moving the mouse to scroll, and yet retain the right mouse button ...
2
votes
1answer
72 views

Media keys replaced by F#, how to fix?

I recently got a new bluetooth keyboard that works fine, except for the Media keys. All of the keys in the f# row are acting as f1-f12 keys, regardless of whether the fn key is pressed or not. Is ...
0
votes
1answer
35 views

AHK, where is the end if? (e.g. #IfWinActive keybinds)

An excerpt from AHK doc: How can a hotkey or hotstring be made exclusive to certain program(s)? In other words, I want a certain key to act as it normally does except when a specific window ...
1
vote
1answer
30 views

AHK key combo, or an application which is capable of changing screen resolutions, in windows 7

I have a 4K television (and a Steam Controller) and I need to swap between display modes depending on what I am doing with the TV: 4K @60Hz (4:2:2), PC gaming, 4K video playback 4K @30Hz (4:4:4), ...
-1
votes
1answer
62 views

How can I write an Autohotkey script that acts like both mouse buttons are continuously held down, if I hold down one mouse button?

1st time post here. So I have this script so far. CAPSLOCK::Suspend lbutton:: ; { MouseCLick, Left MouseClick, Right } I wanted to have my left click act as if i'm clicking both left click and ...
1
vote
1answer
177 views

How to get current timestamp in VLC player without using gui?

I need to automate vlc player and need to get current timestamp for that. Is there any way to do that?
0
votes
1answer
22 views

AutoHotKey script to toogle CTRL and timer

I can't get this script to stop when I hit F7 #MaxThreadsPerHotkey 2 F7:: SetTimer, Spam, off SendInput, {Ctrl Up} return F8:: SendInput, {Ctrl Down} SetTimer, Spam, 1000 return ...
0
votes
1answer
37 views

Breaking loops in auto hot key?

I am trying to break a loop in the middle of the loop (the loop is quite lengthy). I have a break loop in the equation, but it doesn't work when I need it to stop immediately. Here it is... ^!\:: ...
0
votes
0answers
23 views

Dedicated Button or Input Device to send Ctrl+Alt+Delete

I know it's not possible to send Ctrl+Alt+Del with software-based methods (AutoHotkey, etc), but is there some way to do it hardware wise? Maybe a dedicated "Ctrl+Alt+Delete" USB button, like the ...
0
votes
0answers
16 views

Is there a way to delegate host system keystrokes to VMware virtual machine?

I have my Windows system tuned up with AutoHotKey. There is no AutoHotKey for my VMware Virtual Linux machine, unfortunately. So, the virtual machine simply receives the raw input, bypassing ...
1
vote
1answer
79 views

Autohotkey custom Windows key popping up start menu

I have an autohotkey script like this: RAlt::RWin ; right command to alt RWin::RAlt ; right alt to command (windows key) LWin::LAlt ; left command to alt LAlt::LWin ; left alt to command (windows ...
0
votes
1answer
61 views

How to use autohotkey to run command line programs?

I'm sitting behind corporate proxy, I need to switch proxies of git frequently when doing development. So I want to use autohotkey to create a script to toggle proxy setting of git. But I can't ...
0
votes
1answer
21 views

AHK replaces Alt+Shift+LMB to Alt+Shift+Ctrl+LMB?

I'm newbie in AHK, but i could compose few scripts to one. This: ` !+LButton:: SendInput {MButton down}{RButton down} Loop { Sleep, 10 GetKeyState, state, LButton, P if state = U ...
2
votes
1answer
48 views

Autohotkey: Using a 3 key combination to initiate script?

Basically I want to find a solution to make this code work by initiating it with b+down+right key combination. ~b & Left & Down:: ...
0
votes
0answers
27 views

Why autohotkey key remapping not working in putty?

I'm on a windows laptop and a vim user. I've remapped capslock to escape using autohotkey. I have a putty session, when I press capslock, it's still turning on/off upper case instead of sending ...
1
vote
0answers
112 views

Passing control hotkeys to VirtualBox with AutoHotKey

I use VirtualBox on Windows 10 host, and my guest OS is linux openSUSE. Since I still need many windows control hotkeys, I do not use Auto Capture Keyboard in VirtualBox. As a drawback, I can't use ...
0
votes
5answers
109 views

Easiest way to re-order answer key (list of correct answers)

I have a lot of answer keys that look like this: 1.A;8.C;15.E;22.B 2.B;9.D;16.A;23.C 3.C;10.E;17.B;24.D 4.D;11.A;18.C;25.E 5.E;12.B;19.D;26.A 6.A;13.C;20.E;27.B 7.B;14.D;21.A;28.C I'm trying to ...
0
votes
1answer
26 views

Send {%A_ThisHotKey%} don't work always

I am trying to use Send {%A_ThisHotKey%} into one my AHK script. Problem is it doesn't always works. Example: !Tab::Send {%A_ThisHotKey%} How can I make this work in all cases?
-1
votes
2answers
51 views

Why can't I find a tool that lowers the priority of background processes in Windows? [closed]

Since I have started using Windows 10, I contantly have lots of applications open on different desktops. I for example, often have a dozen WinSCP instances open. Each of these take up a few percent of ...
1
vote
1answer
46 views

AutoHotKey Problems

I have an autohotkey script that has two parts, and it seems one part is causing the other to stop working. One part is responsible for whenever I edit the script, it reloads it on c-s. Second part, ...
0
votes
0answers
46 views

Automatically toggle and maximize a window with AHK

How can I use AHK to toogle to certain window and maximize it at certain time. I am trying to use winset (e.g. below) but the problem is that my window name is not fixed. The window name is always ...
0
votes
1answer
47 views

Disable faulty right arrow key using autohotkey

I spoiled some water over my keyboard, and now periodically the right arrow key is activated without me pressing it (e.g. PDFs jump one page ahead, YouTube skips 5s, etc). I used an online keylogger ...