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.
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 ...
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?
25
votes
1answer
11k views

How do I escape the '{' and '}' characters in an AutoHotKey script?

I'm trying to write a simple auto-replace script but can't find how to insert the '{}' characters. The usual escape characters (backtick ` or backslash ) don't seem to work for curly brackets. e.g. :...
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 ...
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 ...
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?
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 ...
15
votes
1answer
2k views

Is there a way to dismiss notifications using a keyboard shortcut in Windows 10?

I'm talking about the notifications that appear in the bottom right corner and disappear by themselves in a few seconds. However, they sometimes can take up a lot of space and get in the way, which is ...
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. ...
13
votes
4answers
39k views

How can I use the keyboard to simulate mousewheel scrolling with AutoHotkey?

I'm looking for a way to scroll with the keyboard using AutoHotkey. It would be also great if I could tweak scrolling speed somehow.
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 ...
13
votes
1answer
3k views

AutoHotKey not working with Outlook 2010

I created a AutoHotKey script and compiled it to an exe. I then ran the exe and ran Outlook 2010. When I try to use my hotkeys I defined I get an error in the status bar saying "This modification is ...
12
votes
1answer
4k views

How can I make multi-line AutoHotKey scripts more readable?

I want to create an AutoHotKey script that generates this text: ==videoReview aspnetmvc IDCODE TITLE DESC 10:00 viewable online [[ ]] 3 english extras::$url=nnn;$reason= Using a similar tool called ...
12
votes
2answers
3k 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, ...
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 ...
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 ...
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 ...
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 ...
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 ...
9
votes
3answers
15k views

script to restore/bring to front of a program, or open it if it is not active

I am trying to develop a script that should do the following. For example, !W should: check if Word is active (can be open or minimized) if it is minimized, it should be restored to the size 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 ...
8
votes
7answers
15k views

How to toggle the auto-hide status of the Windows taskbar

I use Windows 8 on my desktop. Currently I have to move my mouse over the taskbar, right click, click on properties, click on auto-hide the taskbar, and then click OK. This is a real pain if you want ...
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 ...
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-...
8
votes
2answers
701 views

How to disable only some Windows 10 global shortuts to use them in third-party applications?

1. Briefly I want to disable only some Windows 10 default global hotkeys, to use this hotkeys for run Sublime Text commands. 2. Detail I have Windows 32-bit 10.0.14393. In Windows 10 we have many ...
7
votes
2answers
7k views

MacBook Pro / Windows 7 : remap Cmd key to Ctrl, except Cmd+Tab to Alt+Tab

I'm using a MacBook Pro running Windows 7 under bootcamp. I'm used to switching between Mac kb / MacOS X software and Windows kb / Windows software but the crazy mixup of Mac kb / Windows software ...
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 ...
7
votes
1answer
3k views

Remap Caps Lock in Windows (escape *and* control) [duplicate]

There's plenty of utilities that remap keys, but I can't seem to find a very specific feature: I want to have caps lock act as the control modifier key when held down, but as escape when pressed on ...
7
votes
2answers
9k 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 previous ...
7
votes
2answers
2k views

How do I create a hotkey for a sequence of inputs while holding Ctrl, e.g. {Ctrl Down}ec{Ctrl Up}?

For example, in Visual Studio Express 2013, many of the formatting shortcuts have been "folded" into Ctrl+E. To comment a selection, one would hold down Ctrl, hit E, hit C, then release Ctrl.  &...
7
votes
1answer
7k views

Using the IfWinActive keyword in AutoHotKey

This question about the use of AutoHotKey is specific to a Windows LaTeX editor called TeXnicCenter. So, I was trying to write my first AutoHotKey (AHK) script, and wanted the shortcuts to be ...
7
votes
1answer
2k views

AutoHotkeyA32 vs. AutoHotkeyU32 vs. AutoHotkeyU64

The portable .zip archive for AutoHotkey contains 3 executables: AutoHotkeyA32.exe, AutoHotkeyU32.exe, and AutoHotkeyU64.exe. Based on the filenames, I'm assuming 32 and 64 refer to 32-bit and 64-bit ...
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
2answers
4k views

How to make mouse jump from one screen's border to another screen in a Windows PC with multidisplays?

My laptop, running Windows 7 Pro, is connected to a docking station with 3 monitors. The screens' disposition is something like that : Monitor 1 is 1366x768 (laptop) Monitor 2 is 1920x1280 Monitor 3 ...
7
votes
1answer
1k views

Free panning/scrolling on LibreOffice Draw

LibreOffice Draw allows me to scroll vertically or horizontally using my mouse as follows: Scroll Wheel: Scroll vertically Shift + Scroll Wheel: Scroll horizontally My question is: Is there any way ...
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
4answers
7k 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?
6
votes
3answers
91k views

Disabling Function Keys in Windows 8 with Autohotkey

I would need to use Autohotkey to disable Function keys ( F1 -F12 ) on my Lenovo ideapad u310, running a Windows 8. I need this in order to use the F1-F12 in applications such as Ableton Live. ...
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?
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. ...
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 ...
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 ...
6
votes
2answers
2k views

Autohotkey use CapsLock key as modifier key

How might I use the CapsLock key as a modifier type key in autohotkey? For example currently I am currently doing the following: t=0 CapsLock::t:=!t #If t y::6 u::7 Ideally I would like to ...
6
votes
1answer
6k views

AutoHotkey script for 'right click context menu' command [duplicate]

I am using a Macintosh keyboard on Windows and would like to create a hotkey so that I can turn ctrl and some other other button into the “right click context menu” button of non-mac keyboards. What ...
6
votes
4answers
4k views

AutoHotkey: how to assign a command to the “Calc” key?

how do i assign commands to the "calculator" or "favorite" keys with autohotkey?
6
votes
3answers
5k views

Detecting touch screen presses in AutoHotkey in Windows 8

I am using a Dell Venue 8 Pro running Windows 8.1 32 bit. I am trying to use AutoHotkey to map certain regions of the screen to certain buttons on the keyboard, in order to be able to use the touch ...
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. ...
6
votes
3answers
668 views

Make a shift key behave like an arrow key

I have a Windows 10 laptop with a keyboard designed by idiots. They tried to cram the arrow keys where they don't belong, with the result that the up arrow key is between the right shift key and the / ...
6
votes
1answer
460 views

How to move a window, or switch, to another virtual desktop using the keyboard?

Is there a way to achieve this using Autohotkey if there is no native functionality for it?