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

0
votes
1answer
134 views

How to specify “##” at beginning of line in autohotkey script?

I have this script: :r0*:vidrevph:: ( [[ ##intro - ]] ) but when it runs, it leaves out the ##: [[ intro - ]] How can I make it include the ##?
1
vote
4answers
2k views

How can I tell AutoHotKey to ignore the key (space bar) the executes the script?

I have the following autohotkey script: ::aaim::==aim{ENTER}int{ENTER}{ENTER}12{UP}{HOME} which produces this: ==aim int 12 however, to execute it I have to type aaimSPACE which then puts a space ...
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 ...
1
vote
1answer
281 views

Why does AutoHotKey not execute a {Left} after the () section?

I want this AutoHotKey script: ::aaim:: ( ==aim 2010 2 ){Left}{Up} to output this: ==aim 2010 | 2 but it outputs this instead: ==aim 2010 2{Left}{Up} }| (where "|" is the cursor) How can I ...
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 ...
4
votes
2answers
6k views

How can I define the cursor position in a AutoHotKey script?

I wrote a AutoHotKey script to print out these four lines: ==quote web 12 but I want the cursor to be blinking between the line "web" and the line "12", I would think I could include the word "...
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 ...
2
votes
1answer
2k views

Modifier with multiple keys syntax in AutoHotKey

I'm trying to insert a Unicode character in AutoHotKey using the keyboard shortcut like 'Alt-down' + a 9 'Alt-up' i.e. pressing the keys + a 9 while holding down the Alt key. I'm probably missing ...
2
votes
3answers
362 views

Automate dull task

Like this question: Automate GUI tasks? I'm asking for a way to automate GUI tasks. I understand that those 2 apps are what's used for that sort of stuff, but those 2 apps are hard to use. OK, here'...
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 ...
1
vote
1answer
3k views

How to configure AutoHotKey for Win-Tab instead of Alt-Tab

AutoHotKey is excellent keyboard customisation and automation utility. I have configured it for Alt-Tab using my mouse: ~MButton & WheelDown::AltTab ~MButton & WheelUp::ShiftAltTab I am ...
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?
0
votes
1answer
85 views

StringSplit is chopping off a character

I have a hotkey setup like this: Numpad1:: ClipSave := ClipboardAll Send, ^+{Left}^+{Left} Send ^x StringSplit, Commands, Clipboard, {Space} Send, local{Space} Send, %Commands1% Send, {Space}={Space} ...
3
votes
2answers
4k views

How to temporarily disable a key in autohotkey?

I want to temporarily disable the effect of a mouse button during part of a command, but still be able to detect whether it's been pressed. Is this possible?
1
vote
1answer
154 views

How to set a hotkey only when another one is active

I want to make a hotkey that only exists while another key is pressed. Ordinarily, just using modifiers would work but i need to intercept specific keys while one is down so that the keys work in ...
1
vote
2answers
207 views

How to use Win+Tab with scrolling?

I'm using Autohotkey and i want to make it use Win+Tab for Ctrl+scroll like this: ~Ctrl & WheelDown::Send #{Tab} ~Ctrl & WheelUp::Send #+{Tab} However scrolling up doesn't work at all and ...
2
votes
2answers
2k views

AutoHotKey and VirtuaWin window switching

I've got a AHK script that looks for an active Emacs window and switches to it. However, since I'm using VirtuaWin now, this script stopped working -- it only works on the virtual display where Emacs ...
1
vote
2answers
2k views

Why doesn't this AutoHotkey script work?

I've written a script: ^!c:: ClipSave := ClipboardAll Send ^x Run calc.exe WinWaitActive Calculator Send %clipboard% Send Enter Sleep 100 Send ^c ;WinClose Send ^v Clipboard := ClipSave it's ...
1
vote
4answers
8k views

AutoHotkey: how to send contents of clipboard as key presses?

I'm making an autohotkey script to run highlighted text through a calculator, and i need to send the contents of the clipboard as a sequence of keypresses, since the calculator doesn't really support ...
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?
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?
4
votes
2answers
2k views

Alternatives to AutoHotKey thats works with Synergy? [closed]

I'm trying to run AutoHotKey with Synergy to share keyboards and mouse on my work machine and gets an awesome custom shortcuts at the same time. But I've expreienced problems as described in this ...
5
votes
2answers
3k views

AutoHotkey: problem assigning CAPS LOCK to ALT-TAB

Yesterday I asked how I could disable or reassign the infamous CAPS LOCK key. The accepted answer pointed me to AutoHotkey, a powerful free, open-source utility for Windows for automating key strokes ...