Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [autohotkey]

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

111
votes
9answers
213k 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.
35
votes
4answers
69k views

How can I record macros for Autohotkey? [closed]

I used a macro recorder for AutoHotkey in the past, but now I can't seem to find it at all. How can I record macros for Autohotkey?
42
votes
3answers
44k views

“Select to Copy and Middle Click to Paste” in Windows

Is there any application to mimic the "Select to Copy and Middle Click to Paste" behaviour in Windows? I was hoping to find an AutoHotkey script for this, but I couldn't. Maybe someone here could ...
16
votes
6answers
14k views

AutoHotKey equivalent on Mac

I am looking for a Mac application similar to AutoHotkey. What are the best Mac applications in this category?
13
votes
1answer
17k views

How to combine three keys as a hotkey with Autohotkey?

I want to combine CapsLock Alt k keys in a single hotkey, such as this: CapsLock & !k:: Send !{Up} This doesn't work because Autohotkey doesn't allow the combination of more than two keys except ...
6
votes
5answers
5k 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?
1
vote
3answers
3k 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 ...
6
votes
4answers
4k 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 ...
3
votes
6answers
1k views

Autohotkey: Use Space + Alt + q to trigger actions

I have some actions defined in an Autohotkey script and I want to run it whenever I press SPACE+Alt+Q. How can I do it? I have read that space has some issues, because it is already used by AHK to ...
3
votes
6answers
2k views

Replacing latex with unicode symbols

Often, during a conversation or an email, or at a forum, I would like to type some math, but I don't need full equation support. Unicode symbols should suffice. What I need is an easy way to type ...
1
vote
1answer
1k 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 "...
16
votes
9answers
36k 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 ...
19
votes
2answers
50k 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 ...
9
votes
3answers
44k views

Enable/Disable a network adapter with a keyboard shortcut

I started out trying to use a shortcut to display the Local Area Connection Status window on my desktop by creating a shortcut and assigning it Ctrl+, (comma). Windows didn't like that, so it added ...
5
votes
3answers
5k 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 ...
13
votes
3answers
6k views

Cannot get Windows snipping tool to auto run with AutoHotKey

I am trying to get Windows 7 sniping tool to run when I hit my PRINTSCREEN keyboard button with AUTOHOTKEY. I have been unsuccessful so far though. Here is what I have for the AutoHotKey script. ...
6
votes
5answers
4k views

Prevent Windows Key from Opening Start Menu in Windows 7

I'd like to be able to stop the Windows Key from activating the Start Menu on Windows 7. I don't want to disable the Windows Key completely. I'd like Ctrl + Esc to still open the Start Menu. I know ...
3
votes
2answers
5k views

What Windows shortcuts should be blocked on a kiosk-mode PC

Assume a normal Windows 7 PC and a custom application running in kiosk mode. It's not possible to quit the application without a password. Now I want to block all Windows 7 key combinations which ...
8
votes
2answers
17k 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 ...
5
votes
2answers
6k views

Send double-click with Autohotkey

I'd like to remap the middle mouse button to double-click using autohotkey. A simple remapping (4th mutton -> middle button) worked fine using XButton1::MButton but I couldn't find a way to remap a ...
4
votes
4answers
5k views

Windows 8: Add German umlauts to US keyboard layout (maybe using AutoHotKey)

I just realized that the Microsoft Keyboard Layout Creator does not work anymore under Windows 8. I used it successfully under Windows 7 to create a custom keyboard layout on top of a US layout, where ...
4
votes
5answers
4k views

How do I send a keyboard layout switch event with autohotkey in Windows 7?

I want to remap the keyboard layout/language switching to Win+Space, I tried it with: LWin & Space::Send, ^+ But it doesn't seem to work, I would want it to send a Ctrl+Shift sequence so ...
4
votes
3answers
9k views

Move E-mails into specific folder using keyboard shortcut in Outlook 2010

I am looking for a way to move e-mails in Outlook to a specific folder. For example: Windows+M - Will automatically move highlighted messages into "FOLDERA" without any popups or anything. I know ...
3
votes
3answers
2k views

Problem with rebinding Ctrl to Capslock using Autohotkey

I am using AutoHotkey to rebind Ctrl to Capslock like this: Capslock::Ctrl I have also bound my home keys for movement while Capslock is held: ^h::Send {LEFT} ^j::Send {DOWN} ^k::Send {UP} ^l::Send ...
2
votes
1answer
3k views

How to disable autohotkeys for specific programs

I have some autohotkey settings for my joystick that are set to work everywhere. However, there are two programs in which I don't want the joystick remapped. How can I modify my script to prevent ...
2
votes
1answer
1k views

Create a hotkey /keyboard shortcut to close the Notepad++ Find Results window

I have always wished that Notepad++ had a keyboard shortcut for closing the Find Results pane / window that appears when I do one of the following: Find All in All Opened Documents Find All in ...
1
vote
0answers
44 views

Can AutoHotKey be able to focus a panel?

Some programs have floating panels within the main window. Since the ability to focus them with keyboard only depends on the framework they are using, is there a way to use AutoHotKey to do this ...
1
vote
2answers
2k views

Start/End selection with AutoHotkey

I would like to have a script in AutoHotkey that allows me to do the following: When I hit Control + Space: It would initiate "text selection mode" (i.e. if I move the cursor with the arrow keys, or ...
0
votes
0answers
184 views

Remap “Windows key + Ctrl + Left or Right arrow” to “Fn key + Ctrl + Left or Right arrow”

How can I, using AutoHotKey, remap the following: Windows+Ctrl+Left/Right arrow (which switches virtual desktops on windows 10) to Fn+Ctrl+Left/Right arrow EDIT: Since this doesn't work, can I ...
0
votes
2answers
1k views

Autohotkey - set a hotkey to toggle (disabled-enabled a hole autohotkey script)

Hi I used to use at the beginning of my Autohotkey script toggle between totally disable it and totally enable it scrolllock:: Pause but it doesn't work anymore, and I have realize that if I set ...
10
votes
5answers
16k views

What is the easiest way to get a yyyy-mm-dd hh:mm:ss timestamp hotkey on the Mac?

On Windows I use the PSPad editor which has a nice ALT-D timestamp which you can edit the format of, e.g. yyyy-mm-dd hh:mm:ss. When working outside an editor, e.g. Google Docs, I have Autohotkey ...
11
votes
1answer
12k views

Any way to keep connection alive in pgAdmin without setting it on the server?

I am using postgres.heroku.com to host my databases. This means that I have no way of changing server settings. Therefore, the answer to this question does not help me. Heroku is not willing to change ...
18
votes
10answers
26k views

Keyboard Shortcut to Swap Mouse Buttons

I use my mouse with both hands and like to switch back and forth for comfort reasons. However, this is made difficult by needing to go through about a zillion layers of menus to swap the buttons each ...
11
votes
4answers
6k views

Disable Ctrl+Z shortcut or clear undo history in Windows Explorer?

Is there any way to disable the CTRL+Z (Undo) shortcut in Windows Explorer? Alternatively, is there a way to have Windows Explorer "forget" its undo history? The reason I ask is that you may have ...
3
votes
3answers
3k views

Autohotkey … modifying the mouse/touchpad pointer speed?

Is there any way (using autohotkey or not) to create a shortcut (two, actually) for modifying the mouse/touchpad pointer speed ? I have two mices, and one touchpad, which I use alternatively ... and ...
9
votes
3answers
4k views

Remap arrow keys to win+ijkl on linux

I'd like to remap arrow keys to windows key plus ijkl. I can do this easily in Autohotkey on windows, but I'm struggling on Linux (Ubuntu lucid). I'd really like the solution to work independently ...
4
votes
1answer
4k views

Remapping Ctrl-Alt-Arrow in Windows 10 using AutoHotkey

I am trying to remap Ctrl-Alt-Right and Ctrl-Alt-Left to imitate Ctrl-Win-Right and Ctrl-Win-Left, respectively. I followed the instructions given in this post, and succeeded in mapping Ctrl-Arrow to ...
6
votes
1answer
1k views

How do you map a solo press of a modifier key to its own function or mapping on Windows?

Today on hacker news there was a clever article on custom shortcut keys. The author talks about a technique for remapping a modifier key such as CTRL to ESC if CTRL were pressed without a modifier. ...
5
votes
3answers
2k views

Replace [ with { and ] with } using AutoHotkey

I found that in coding I rarely use the square braces [] but use the curly braces {} often. On most keyboards, these are inputted using Shift+[ or Shift+]. Now I tried to use AutoHotkey to remap ...
4
votes
2answers
2k views

When caps lock is pressed, space bar returns underscore

Basically, what I'm looking for is: when CapsLock is on I want Space to return _ and I want Shift + Space to return . Detail: This is kind of a continuation of this question I asked about the ...
10
votes
7answers
55k 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 ...
6
votes
2answers
2k views

Open Powershell as Administrator at Current File Explorer Directory Keyboard Shortcut (Windows 10)

Let's say that I'm browsing through Windows File Explorer, and suddenly I decide that I would like to open Powershell as administrator at the current directory (the directory that I'm at in File ...
6
votes
3answers
10k views

Add Right-Click Save as PDF in Windows Explorer

I'm looking for a way to be able to add some options to the Right Click Context menu in Windows 7. I really don't have much experience in programming much but I am very eager and willing to learn. ...
5
votes
0answers
581 views

automate so that if and only if external monitor is attached, closing laptop lid does nothing

Please don't mark as duplicate before reading the whole thing. I have read the other posts and they do not solve my issue. I'm using a laptop with an external display. When the display is connected, ...
5
votes
4answers
6k views

Need Autohotkey to center active window

I'm looking for a way to center the active window on the desktop using Autohotkyes. Can someone give me a script that I could use please. Thanks
5
votes
1answer
4k views

Use trackball to scroll, zoom, etc

I've got a Logitech Marble Trackball (which is great, btw). By setting one of the extra buttons as a "middle" mouse button, when I click it, many apps (like browsers) will start "scrolling mode" so ...
3
votes
1answer
2k views

How to use input/textarea focus as a condition for hotkeys

I have AutoHotkey set up in a way that is recognises Cmd+Left and Cmd+Right keystrokes as Back/Forward navigation in Chrome. Problem is that it also recognises those keys being pressed while I am ...
8
votes
2answers
42k 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 Alt+(Numpad0-...
7
votes
2answers
8k views

Logitech SetPoint software button remapping

My Logitech G5 Laser mouse has 9 buttons but it's SetPoint software only allows 5 of them to be used as "mouse buttons" and the remaining 4 can only be assigned special windows functions (Forward, ...
7
votes
4answers
3k 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 ...