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

Find and replace clipboard database

I want to find and replace things in the clipboard Say Banana - Fruit_Banan4a Apple - Somehing_SomethingApp …and so on It needs to be done in the clipboard, so If I copy "Banana", I need it to ...
0
votes
0answers
4 views

AHK if/else of output from Custom Message Box Function

I've been trying to create a script that displays message boxes conditioned on the output from another customized message box with more than 3 options. The custom functions are taken form this thread ...
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
0answers
10 views

How to trigger autohotkey script with a download

I want to trigger my script every time my Gpodder program downloads an MP3.
0
votes
1answer
15 views

Toggle Window Transparency With Autohotkey Mouse Hover?

I'd like to obscure a windows contents, until I very quickly "peek" at it with a mouse hover, and then have it return to being obscured/transaprent/etc. when I remove the mouse from the window. Ive ...
0
votes
1answer
52 views

Windows 10 - Remapping windows keys?

I'd like to map Win+W to behave like Win+Tab and Win+Q and Win+E to switch to previous and next virtual desktops respectively (What CTRL+Win+Arrow Keys do by default). How can this be done? (I have ...
0
votes
0answers
38 views

Way to switch keyboard layout with a hotkey without crashing Skype on Windows 10

Prior to Windows 10 I was using something similar to Autohotkey scripts mentioned in this question. After upgrading to Windows 10, PostMessage to a Skype chat window causes Skype to freeze. Is here ...
1
vote
1answer
57 views

Batch file to create .7z archive for each file (in folder/subfolder) to a new destination (folder/subfolder structure)

I use a batch file to backup files to 7-Zip archives. It creates an archive for each file separately in the folder where the original file is. Works with sub folders. FOR /r %%i IN (*.*) DO ( ...
2
votes
0answers
32 views

Autohotkey: Use Appskey as modifier, suppress context menu

AppsKey & t:: Send Test This prints 'est' and opens the menu. I would like it to print 'Test' and to not open the menu.
0
votes
1answer
64 views

Script to make an Easier way to replace characters in AutoHotKey

I'm looking for a script which allows me to use an easier way to replace characters. Instead of doing A::1 B::2 C::3 for each and every character, I want to do ABC::123
1
vote
0answers
42 views

Shift+Ctrl+Tab not working in chrome with mapped Caps Lock key in Windows using SharpKeys

As suggested by this post, I used SharpKeys to map my Caps Lock key to Ctrl. A weird problem is that while other functions using this Caps Lock key as Ctrl works fine(like Caps Lock+Tab works fine in ...
0
votes
2answers
3k 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
2answers
87 views

Open CMD Window, Run Batch File From CMD Window, Then Close CMD Window

I have tried to search for an example of how to do this with no success including with autohotkey (I'm very much a noob with AHK). What I am trying to do is open a command window at the explorer ...
0
votes
1answer
18 views

Tooltip should appear after typing two latters of the hotstrings-

This is the working autohotkey script. it generates tootips from hotstrings. I want that tooltip should appear after typing two latters. Please modify the script as I am not able to do so. Loop, ...
4
votes
3answers
2k views

AutoHotkey - Scrolling two PDF documents

I am trying to make a script that scrolls all the opened PDF documents at the same time. The problem is that I can not get it to work unless I specifically name each window that has to be scrolled and ...
0
votes
0answers
39 views

Open URL in Word with non-default browser via AutoHotKey

I want to use Autohotkey to open a web link in word with Portable Firefox. The browser is not the default browser and resides in USB folder. #If WinActive("ahk_class OpusApp") #w:: Send +{F10} ...
0
votes
2answers
178 views

AutoHotKey - Custom shortcut to switch to next/previous desktop in Windows 10

I have written a small AutoHotKey script to switch virtual desktops in Windows 10. I wrote this code so that I could switch desktops with my own custom keyboard shortcut instead of using Windows 10's ...
6
votes
5answers
23k views

Super key to pause, mute mic, and mute speakers in windows

EDIT:Just rephrasing the question: Does anyone know how to mute the mic using autohotkey? Here's why I need it: Whenever someone walks in my office I have to pause the media player. Sometimes, when ...
0
votes
2answers
33 views

Emulate left mouse button with CapsLock key

I want CapsLock key on my keyboard to act like the left mouse button. I want to be able to perform clicks, double clicks, send mouse down and mouse up events etc. Now I am using AutoHotkey and the ...
0
votes
0answers
35 views

How to move a window, or switch, to workspace N using keyboard?

Is there a way to achieve this using Autohotkey if there is no native functionality for it?
68
votes
5answers
105k 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.
0
votes
0answers
26 views

Cannot capture media key press

I am attempting to write an Auto HotKey script involving the media keys of my keyboard, but the key presses, such as Media_Play_Pause, do not seem to correspond to my media keys. While the media keys ...
0
votes
1answer
27 views

AHK script to open specific webpages

I cannot set up a script when trying to use just part of the Window Title of a webpage using Internet Explorer or Chrome SetTitleMatchMode, 2 #IfWinActive, bab.la Italian-English dictionary - ...
4
votes
4answers
4k views

Is there an AutoHotKey for Ubuntu?

I would like to simulate keyboard combinations. I am able to do this on Windows with AutoHotKey. Is there an equivalent app for Ubuntu?
0
votes
1answer
42 views

autohotkey's ControlClick,&Set Default not working?

I'm following this awesome AutoHotkeyScript and having difficulty getting the Set Default button to be clicked. off topic: If you want to replicate, I had to change a few commands for detection of ...
0
votes
1answer
36 views

AutoHotKey Ctrl in Caps Lock doesn't work with shift

I don't have big fingers nor can I hit the ctrl key with my palm. Since I use ctrl for so many hotkeys, I had to remap it to the capslock button. I lived with it fine using the registry method for ...
0
votes
0answers
12 views

Matching Window Title of an Internet Explorer webpage [duplicate]

I cannot set up a script when trying to use just part of the Window Title of a webpage using Internet Explorer SetTitleMatchMode, 2 #IfWinActive, bab.la Italian-English dictionary - Internet Explorer ...
0
votes
4answers
70 views

autohotkey press longer for caps

I want to press a key longer to get it pressed with shift Here is what I tried: $a:: KeyWait, a, T0.7 If ErrorLevel ...
1
vote
1answer
40 views

Autohotkey. How will I hit ctrl button just once and not everytime?

shift::SoundSet +1 ctrl::SoundSet -1 .......is the script, problem is I need to press ctrl five times if I want my volume to increase five more. Unlike this: PgUp::SoundSet +3 pgdn::SoundSet -3 ...
2
votes
1answer
3k views

Set (Many) Programs' Window Size/Position

I'm looking for a solution similar to this, but for Windows 7 (64-bit), and not just for the terminal. This is also definitely not a duplicate of this question. The Problem Some programs remember ...
1
vote
2answers
53 views

How to achieve expanded abbreviations on Mac OS X?

On Windows, AutoHotKey enables you to write short scripts to recognize keystrokes and then expand them if they match a shortened abbreviation. For example, if I type 4111 and hit space I can expand ...
4
votes
2answers
16k views

How to emulate numpad on a PC laptop?

Some programs use numpad keys for commands: for example to select all files in a folder in the FAR Manager you can just press the numpad *. Also in Windows one can, for example, type § by ...
0
votes
0answers
29 views

Disable some Win+X hotkeys for Explorer from RegEdit under Windows 8.1

How to disable some of Win+X keys that are registered to Explorer so that they could be used by other software (e.g. disabling Win+I and Win+P and then mapping these keys from within Search Everything ...
0
votes
0answers
29 views

AHK suddenly not working in bluestack. any idea?

I just use AHK for bluestack then suddenly it's not working just this time. It still works in non-bluestack stuffs like open folders etc. but not in bluestack. this is the script: z::lbutton
0
votes
0answers
47 views

Click button on browser using ID programmatically (for Noob)

I am a freelancer, I have to upload images on a website, and I need automation. Taking example of this website, in google chrome, I can open console and enter $('#wmd-image-button').click() And ...
0
votes
0answers
25 views

Disable broken laptop keyboard in Windows 8 [duplicate]

Is it possible to disable the internal Keyboard on my Laptop? I poured Tea over it and now the "M"-key is stuck. I tried a lot and it is far too expensive to replace the keyboard on this old laptop. ...
1
vote
0answers
48 views

Divide the screen in windows 7

I have to work on a debugger in one window and the source code and testing in another 2 windows. I have one large monitor. Doing Alt+Tab frequently is beginning ot hurt my fingers. I was looking for ...
2
votes
2answers
171 views

ALT + ESC I want to improve upon its functionality

Pressing ALT+TAB is very helping in navigating among open windows in the desktop of my windows 8.1 PC. NOTE 1: The menu that appears gives one the ability to navigate not only between open desktop ...
0
votes
1answer
49 views

How can I use autohotkey to cycle through Google Chrome windows while filtering by title?

I'm having difficulty writing this because WorkFlowy (a Chrome extension) and Google Chrome have the same ahk_class. Here is a script I use to cycle through Windows Explorer windows in a similar ...
0
votes
0answers
17 views

How to remap direction key in Linux? [duplicate]

I use a simple AutoHotKey script to use vim navigation keys in OS-wide level. It is really useful and makes life a little easier. However, I just migrated to Mint. I am addicted to the vim keys and ...
0
votes
0answers
25 views

How can I edit this autohotkey script to target different applications?

This autohotkey script is designed to make vlc unclickable and transparent. I'm trying to re-purpose it to do the same to a chrome window but changing the ID ID := WinExist("VLC media player") to ...
0
votes
1answer
76 views

How can I make a hotkey to play/pause music?

I used to have a laptop that had a function hotkey to play/pause music when you had a music player (iTunes, mediamonkey). I have a new laptop now, but it doesn't have that hotkey anymore. How can I ...
1
vote
1answer
8k views

AutoHotKey how to pass/evaluate parameters to functions

I'm having trouble understanding how parameters are accessed in AutoHotKey functions. For example, I set myVar variable with the InputBox, then pass it to a function. How do I evaluate the arg in the ...
0
votes
2answers
56 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 ...
1
vote
2answers
59 views

AutoHotkey - - loop through files and replace whitespace with _

With AutoHotkey, trying to loop through all jpg's in an absolute path and replace all white space with _ . I've been fighting with this for ages, only got this far: #!l:: Loop, ...
0
votes
1answer
59 views

Autohotkey - need to reload

i am using autohotkey with great pleasure, but for some reason i need to reload the scripts / replace the instance every ~60 minutes. they are still active in my taskbar, but the shortcuts are no ...
1
vote
0answers
21 views

AHK script when screen projected to connected screen

How to create a AHK script where depending on the screen situation (ie, if it is projected onto another screen or not) an application is open at a certain area or at another area
1
vote
2answers
388 views

How to tell if VLC is playing anything or not with AutoHotKey?

Is there a way in AutoHotkey to find out if VLC is playing anything or not? My purpose is to only send Full Screen key F and Aspect Ratio key A if VLC is playing something; if not, wait for it to ...
-1
votes
1answer
141 views

AutoHotkey: Press a button every x seconds while mouse-button y is pressed down

I'm trying to figure out if it's possible. While I hold mouse-button 4 ( back ) down, it should execute pressing down the combination ctrl+g every 50 ms. I can do it with my Logitech mouse, but I ...
1
vote
1answer
94 views

Make Office ribbon to drop-down and hide on hover

How can I make a minimized Office ribbon to drop-down on hover over a tab and disappear after the mouse leaves it? Among other annoyances, one of the worst usability disadvantages of the Office ...