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)

2
votes
1answer
2k views

Windows 8 not running autohotkey script on startup

I am running Windows 8.1 Pro (RTM) 64bit and made a shortcut to a autohotkey script in shell:startup. (Alt-drag and dropped the script into there to create a shortcut) Autohotkey is set to run as ...
1
vote
1answer
2k 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
33 views

How to change default browser to custom program/script (http-association) in Windows 8.1?

How do I change the default browser in Windows 8.1 to a custom program or script? I would like to change the association of the http-protocol to an AutoHotKey-Script (AHK), which opens the right ...
10
votes
7answers
24k 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 ...
-1
votes
0answers
32 views

rotate mouse & pen by 90 or 270 degrees

if i connect my digital pen to my windows 8 tablet with a micro usb adapter, the mouse orientation is rotated by 90 degrees in landscape mode, portrait orientation is fine the digital pen is ...
1
vote
2answers
352 views

Autohotkey script - Send keystroke on specific Firefox page?

I have a script that sends End key keystroke when i open specific page in Firefox, it scrolls automaticly to the bottom of the page. The problem is that i can't scroll upwards on that page any more. ...
1
vote
1answer
67 views

Select text until character found

I`d like to learn how I can select text like with +^{Left} until a specific character ("-" in this case) has been found. Thank you for your help.
1
vote
1answer
16 views

Shift and number key issue

Wanted a simple script where MButton mapped to hitting the number row key 8 then holding RButton until released. $MButton:: SendInput {8} SendInput {RButton Down} return $MButton Up:: SendInput ...
0
votes
1answer
36 views

How to use AutoHotKey to make R-Control function as R-Win

I have a keyboard that doesn't have a R-Win key, but software that I use requires R-Win specifically for some keyboard shortcuts. I'm trying to remap the R-Ctrl key I never use to R-Win using ...
0
votes
2answers
285 views

Using Autohotkey for Emacs

I am using emacs in Cygwin and have used Autohotkey to re-map the lefthand 'Alt' key and the lefthand 'Windows' key to be (left)Ctrl and (left)Alt respectively. This means that an emacs sequence like ...
0
votes
0answers
30 views

PostMessage goes wrong if I press CTRL or SHIFT

HoldLeftClick(600, 400, 4000, WindowName) ; ( coord x, coord y, delay in ms, window name where to hold left click) HoldLeftClick(x, y, delay, Window) { PostMessage, 0x201, , ((y<<16)^x), , ...
0
votes
0answers
33 views

Remapping key for a Samsung bluetooth keyboard [duplicate]

Just received a brand new Samsung bluetooth keyboard (EE-BT550NBEGSE) which works great but when connected to my laptop I'm really missing the Windows key-function. Instead, there's this "moving ...
1
vote
0answers
19 views

Autohotkey, why does this Windows Explorer Backspace hotkey not trigger itself, even without a $ prefix

In this howtogeek post, there is a snippet like this, use Backspace to go up one folder level in Windows Explorer: #IfWinActive, ahk_class CabinetWClass ; Please run on Windows 7+ Backspace:: ...
0
votes
0answers
13 views

Autohotkey GroupActivate MRU behavior discrepancy, any way to fix?

Please check my small test script: ; script start prepare_group() !#r:: reload F9:: GroupActivate, regroup, R ; MRU behavior broken F12:: GroupActivate, clgroup, R ; This behavior is correct ...
1
vote
1answer
25 views

In AHK, how can I create a new Chrome browser window and activate it

I would like to create a new Chrome window with the following AutoHotKey script: #c:: Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "--profile-directory=Default",,,PID ...
0
votes
0answers
28 views

Autohotkey complete mapping of arrows

I have this code so far using autohotkey (.ahk) !k::SendInput,{UP} !j::SendInput,{LEFT} !æ::SendInput,{RIGHT} !l::SendInput,{DOWN} which correctly maps my arrow keys to j,k,l,æ accordingly. (æ is ...
0
votes
0answers
21 views

Make Sikuli run on a separate virtual screen

I'm using Sikuli to create scripts that run using screen captures. How could I make a sikuli script run in a separate virtual screen in order to be able to use my computer when a script is running? ...
0
votes
0answers
8 views

how to to set focus on a form entry in Outlook using autohotkey?

I would like to bind a key to jump to Outlook (2013) and set the focus on a specific entry field (Search People below): Right now I managed to do this by creating a People Search entry in the Quick ...
1
vote
2answers
4k views

Hit one key to hold a second key down, until third is pressed

I'm trying to get the following behavior with AutoHotKey: When the A key is pressed, AHK holds down the S key until the D key is pressed. The following script isn't working as expected: a:: Send ...
1
vote
4answers
95 views

Autohotkey, use F1 as prefix key but do NOT block Ctrl+F1, Shift+F1 etc

Using the following statement, F1 & F9:: Msgbox, Got F1+F9 I can successfully use F1 as a prefix hotkey, quite a useful feature. However, I quickly find that Ctrl+F1, Shift+F1 etc lose their ...
0
votes
0answers
20 views

remapping DEL key with Right Alt

via Autohotkey I can remap many keys to be used in combination with Right Alt, but I cannot make it with the letter DEL RAlt & o:: Send {DEL} works for the first time but cannot be repeated ...
0
votes
0answers
31 views

Sync vertical scroll between office word 2013 and nitro reader or adobe reader

I would like to be able to vertically scroll between office word 2013 and nitro reader or adobe reader at the same time. I'd prefer to use the mouse wheel to do. i find this autohotkey code for ...
1
vote
0answers
16 views

Autohotkey, how to dectect key release when that key is used as a prefix

I have a concise question with the script below: global Eme_Fn_idle := true F1 UP:: MsgBox, F1_up ; ★I wish to see this after pressing and releaseing F1+F9 Eme_Fn_idle = true return F1 ...
1
vote
1answer
51 views

Why did windows change the elevation requirements of my AutoHotKey script, and how can I prevent such in the future?

I was working on an AutoHotKey (AHK) script to create prefab mouse movements for a very simple model viewer. I worked on it for a good hour. I zipped the script, posted it to a forum, and thought "oh ...
0
votes
1answer
40 views

Keyboard Hotkey/Macro Software [closed]

Im looking for a simple easy-to-use software, that can do the following for me: When I hold down spacebar, it actually taps it (click down, release, click down, release... etc.) And then stops when I ...
2
votes
0answers
34 views

Open TCP/IPv4 properties with Autohotkey

I have the following Autohotkey mapping to attempt to open the Open TCP/IPv4 properties: #w:: Run ::{7007acc7-3202-11d1-aad2-00805fc1270e},, max WinWaitActive, Network Connections Send ...
12
votes
2answers
2k 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, ...
0
votes
1answer
109 views

Autohotkey watch folder for new file

I'm trying to watch a folder for new changes then execute key presses. Here's what I have so far: #j:: Loop 5 { Send ^!{c} ; watch and wait folder path until a new file is added Send ...
0
votes
1answer
53 views

Paste clipboard content into inputbox

is it possible to have a script paste clipboard content into an inputbox? I have had no success yet. Every time the inputbox pops up, it seems to interrupt the script and the code that`s supposed to ...
0
votes
2answers
26 views

Autohotkey, how to define window-version sensitive hotkey?

I try to define Win+1 to launch some application on Windows XP, but don't want such behavior on Win7+. How can I do that? The following snippet will cause Windows 7 to show "Trigger on Win 5.x" box ...
0
votes
1answer
99 views

Chrome hotkey to move horizontal bar to the very right

Whenever I open a small window in Chrome that has a horizontal bar I would like to have a keyboard shortcut to move that bar to the very right. How can I do that?
-2
votes
1answer
33 views

AHK Anagram solver [closed]

I'm trying to make a "real time" anagram solver, but the only way I can think of is gonna take AGES to make. for example with the word tree: ::reet::tree ::eret::tree ::eert::tree ::teer::tree ...
4
votes
3answers
2k 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. ...
0
votes
2answers
1k views

How to escape a modifier symbol to remap the key in Autohotkey?

I want to remap "<" key in Autohotkey. But "<" symbol is a modifier symbol. Therefore Autohotkey doesn't remap it like a normal key: CapsLock & <::Send {`&} How to escape a ...
1
vote
2answers
923 views

How to run AutoHotKey script as an admin every time a user logs in?

I have computers where quite a few users log in. I want to restrict the usage to a maximum of 12 hours after which an ahk script logs off the user. I have the following solution but couldn't figure ...
1
vote
1answer
64 views

Paste to text file script

I'd like to use AHK to create the following program: I highlight some text, and hit ctrl+c. I hit the keyboard shortcut, say #c Notepad++ creates a new text file with the content, and promts me to ...
1
vote
1answer
559 views

Autohotkey key sequence not detected (win-alt-enter) '#' and '!' getting ignored

I am trying to remap the MCE remote green button that sends win-alt-enter (confirmed same LWin, LAlt, and Enter being sent) to just the windows key (LWin is fine). I found #!Enter:: on several forums ...
0
votes
0answers
24 views

Autohotkey, possible to override ESC close Window? override close window only

Some application closes its window when user press ESC, and I'd like to have Autohotkey override that behavior, that is, leave the window there on ESC press. I tried something like this: ...
0
votes
1answer
60 views

Autohotkey, cycle through multiple matched window, is it possible?

I use the following autohotkey commands to bring EmEditor(a great text editor) to foreground. ^#1:: WinActivate, ahk_class EmEditorMainFrame3 However, when there are more than one EmEditor ...
0
votes
1answer
49 views

ahk script tweak for 2 instances

I’m trying to create two different hotkeys that launch two independent instances of an application. When the second one is open a “[2]” is added to the title of the Window, which is very useful to me. ...
0
votes
1answer
44 views

ahk WinMove not working in a faster machine

is it possible that in a faster machine AHK WinMove feature does not working and needs something else? I'm positive that the same script works in other slower computers, that means arrange my screens ...
0
votes
2answers
53 views

Autohotkey variable does not get expanded, simple but baffling

Please help check my Autohotkey(1.1.13.01) script: #!r:: Reload Sleep 1000 MsgBox, 4,, The script could not be reloaded. Open it for editing? IfMsgBox, Yes, Edit return global gg := 10 #!t:: MsgBox ...
0
votes
2answers
29 views

AutoHotKey WinText to close certain window (error) when WinTitle is duplicated

I am trying to make an autohotkey script that automatically kills an error screen on a program (as it schedules a lot and it blocks all the scheduled items), but the error has the same title name as ...
0
votes
3answers
37 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 ...
1
vote
4answers
793 views

Can't run telnet in console opened by Autohotkey

I have enabled the telnet client on my Windows 7 64-bit machine and if I open the start menu and launch cmd from there I can run telnet. I normally use the keyboard shortcut Win-C, implemented by ...
1
vote
1answer
61 views

How to remap Caps Lock to Ctrl using AutoHotKey for Cygwin only?

If there is a way to remap Caps Lock to Ctrl using AutoHotKey for Cygwin only in Windows 7? I can do it with the following script for all programs: Capslock::Control But how can make the key ...
0
votes
0answers
41 views

Open a Windows 8 app with AutoHotKey

I'd like to make an autohotkey script to open or minimize a Windows 8 app which plays music (depending on if it's already open or not). I've tried directly launching the modern app's .exe with ...
0
votes
1answer
30 views

Autohotkey: How to get a command to act as a key?

Due to two keys being broken I want to be able to make the 'I' and 'O' to be mapped to a command, so for example mapping 'O' to ALT+P or something. Thanks (noob at autohotkey)
0
votes
2answers
943 views

How to get the AHK Visible Window Text from Putty?

Is there a way to retrieve the contents of the Putty buffer from an AutoHotKey script? For many applications, WinGetText works, but it doesn't seem to for Putty. Also, the AHK Windows Spy doesn't ...
0
votes
0answers
35 views

Search color in specified area with AutoHotKey

I'm trying to make an AHK script and I need help with these points: Search on color within specified Area Auto click on specified color when detected on specified area Target a window in the ...