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
1answer
7k views

How to lock screen from command line in Windows 8.1

The following command is mentioned around other places: rundll32.exe user32.dll,LockWorkStation or C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation but I couldn't make the command ...
2
votes
1answer
176 views

Getting RegEx Code for File Name Change

Good Day Please help to find the right RegEx or other code for changing file name. Many subtitle files I have unnecessary character. I need to rename in my expectation format. Here the example Raw ...
0
votes
1answer
516 views

Automatically set Firefox windows position and size with AHK

I want a script that automatically sets a position/size for each new window I open on Firefox, since I hate how when you open a new windows it's position is relative to the last window of the program ...
1
vote
1answer
176 views

How to use the ctrl ^ key with autohotkey

thank you all in advance. I am trying to send a hotkey, which is user defined and save in an ini file, to a game. The ini file is working as intended, and the hotkeys are being returned correct. ...
0
votes
1answer
81 views

Google Chrome update seems to have broken my AutoHotKey scripts to expand text and automate other tasks

A restart of Chrome, this morning, seems to have 'broken' my autohotkey scripts to expand text messages and automate repetitive button pressing sequences. I edit Waze maps and take part in various ...
1
vote
1answer
166 views

How to speed up the “Agent Ransack” main functionality

This question is related with similar problem, in other search type app. (http://superuser.com/questions/830525/how-to-speed-up-the-search-everything-main-functionality) The "Agent Ransack" is a very ...
0
votes
2answers
188 views

How to speed up the “Search Everything” main functionality

The "Search Everything" (http://www.voidtools.com/) is a fantastic free software, but it lacks a very basic thing, which is to "Search within the current path". Currently, if you wanted to search for ...
1
vote
1answer
142 views

How to replace letter keys, say v using autohotkey?

One of the letters on my keyboard, v is not working and since I am on windows 7, tried using autohotkey to replace this letter with another key combination like win+c or alt+c. But that is somehow ...
0
votes
1answer
33 views

AHK build “central” of keyboard shortcuts

I would like to have a universal shortcut, either on the computer as a whole or just in some limited programs (like for example only when chrome is active). (PS. I use AHK language here, so ^ is ctrl ...
0
votes
1answer
34 views

Tab trigger action in certain program

What is wrong with this script? Here is the code and waht i try to accomplish TAB:: IfWinActive, MyLfeOrganized Send ^!{Right} return Where ^! is shift and alt key at the same time.
-1
votes
1answer
179 views

How to type exactly in Excel sheet what I am typing in any other program using autohotkey?

I have to fill some information in some online forms as customer name, his address, his phone no and his father's name etc. I want that what I am filling in that online form should be automatically ...
2
votes
1answer
450 views

Allow Synaptics Touchpad Windows-Key Window Snapping

I was dying to find an easy way to do the Windows-Key + Arrow window snapping functions using the Synaptics touchpad on my Lenovo Yoga 11s. This would be perfect for 3/4 finger swipes left and right ...
0
votes
1answer
891 views

CM Devastator Keyboard - Turn On Backlight, Turn OFF Scroll Lock

So I recently purchased a CM Devastator keyboard, which has a LED backlight. The catch is, that the backlight is toggled with the ScrollLock key. So you have to have ScrollLock "On" in order to have ...
1
vote
1answer
757 views

AutoHotkey Script for repeating key in background chrome tab

So what I want to do is when I press on a key A/B L/R/U/D I want to send that keystroke both to whatever I'm working on as well as to this Pokemon yellow game. Here's the script so far: Left:: Send {...
0
votes
1answer
584 views

How to send cell by cell data from a excel (xslx) file by using single hotkey every time?

I am trying to send data from a excel file to some another file by using Loop (read file contents) command in autohotkey. But it is not working. As I made a script which is as follows: FileRead, ...
1
vote
1answer
231 views

Send Key in AutoHotKey without recursion

I want to override F1 but use SHIFT+F1 as F1 Okay what does this mean? I want to override F1 with my personal AHK command F1::Run C:\..\foo.exe But there are apps where I need the default F1 key. ...
2
votes
1answer
2k views

Disable right click in windows chrome

I am trying to run chrome in kiosk mode and disable right clicking. I'm using a autohotkey script on startup and my current script is below: #NoTrayIcon RButton::Return Run , C:\Program Files (x86)\...
0
votes
1answer
31 views

AHK ^{BS}:: gives an error

I want to execute this script in my program MyLifeOrganized since it's bug. Here is what I want to do: ^{Del}:: Send ^{Shift Down} Send {Left} Send {Shift Up} Send {Del} return What's wrong? It ...
1
vote
1answer
261 views

re-mapping media keys on a USB keyboard

Is it possible to re-map the media keys (volume, reload, etc) on a USB keyboard so that the order matches the one on my laptop? I want to re-map ONLY the ones on the USB keyboard. I've tried ...
0
votes
2answers
106 views

AHK - Google Chrome specific hot strings

I am trying to create Google Chrome specific hot strings. The problem is, that for some strange reason SetTitleMatchMode doesn't seem to working. Here is my example code: SetTitleMatchMode, 2 #...
0
votes
1answer
230 views

Copy (to clipboard) from table (list) in a program on Windows

I'm using a program (Comsol) that computes a formula entered into one cell in a table, and places the result into another cell. The first cell is editable, and I can copy from it to clipboard with ...
0
votes
2answers
105 views

AHK export txt to pdf

In notepad++ I want a way, using AHK, to quickly export it using pandoc from a txt to a pdf. I'm halfway though the code. It does not work. What I want to do is Go to Edit>Copy To Clipboard>...
0
votes
1answer
535 views

Adjust brightness with Autohotkey using micrsoft codes for HID

I know there are similar questions but I have done some investigation and have noticed that AutoHotkey works perfectly with Volume_Up and Volume_Down but I am surprised there is no similar command for ...
0
votes
1answer
640 views

How to make backspace key in Windows 8 Explorer get me to parent folder instead of going back in history? [revamped] [duplicate]

Posting the same question from another user, but for windows 8 instead. In Windows XP, Backspace (aka ←) key leads you to the parent folder, but in Windows 8 it just goes back in history. How do I ...
2
votes
1answer
3k views

How is it possible to emulate mouse wheel scrolling using the touch screen on Windows 8.1? I.e. remapping touch gestures to mouse events

I recently bought the Surface Pro 3 and noticed a very annoying problem concerning all applications that do not yet support touch input. For example: The note taking application "Evernote" does ...
1
vote
3answers
360 views

Autohotkey Having Hotkeys & Hotstrings

How do I allow the Hotstrings to be triggered by remapped hotkeys so they work in Autohotkey? r::Send e ::ee::by the way So that when I press rr on the keyboard it prints "by the way". Currently ...
0
votes
1answer
79 views

Modify hotkey to only fire when text area not in focus

Below script fires sublime text program when user types "sub" : :*:sub:: ; Run "C:\Program Files\Sublime Text 3\sublime_text.exe" return The issue is that it also fires as im typing text into a ...
1
vote
1answer
991 views

AutoHotkey: Bind one key to two modifier keys

My issue is deceivingly simple. I have this combination in my .ahk file: Capslock::Shift This works. If I hold down Capslock, it doesn't activate, but it does whatever Shift has to do, which is ...
0
votes
1answer
182 views

AutoHotkey to map Right Winkey and TAB to LWin and t

I changed keyboards. Now I have a right windows key but not left. Left work(ed)s for my simple script of #TAB send #t return this cycles through the windows on my taskbar. but it doesn't work ...
1
vote
1answer
258 views

AutoHotkey, don't get the solution

I really need your help. I trying to program an AutoHotkey script but I not quite getting a working solution. My current AutoHotkey script is: #IfWinActive Guild Wars 2 shift & 1:: Send, 1 sleep ...
0
votes
1answer
318 views

ssh login with key can't connect although go an ssh key

I have my 2 servers that I want to connect one to another with ssh. I am the user --> userA in serverA, and I have this config file in .ssh folder Host git HostName git.OURSITE.com ...
3
votes
1answer
763 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 ...
1
vote
1answer
259 views

Disable Backspace as Nav in Chrome using AutoHotKey

I'm trying to use AutoHotKey to fix the backspace key in Chrome. My first attempt utilized the following solution from this question: #IfWinActive, ahk_class Chrome_WidgetWin_1 BackSpace::Send, {Left}...
0
votes
1answer
40 views

Creating a keyboard command with AHK, no *else* statement

I want to have the same shortcut for tabs in my pdf reader as in my browser. With AHK I wrote: ^PgUp:: IfWinActive Foxit Reader Send {Ctrl down} Send {Shift down} Send Tab else return ...
0
votes
1answer
67 views

Autohotkey Directives

I get the following error when trying to create the following autohotkey. #If test Error: This line does not contain a recognized action. Why can't I use #If directives in autohotkey currently?...
0
votes
1answer
88 views

Autohotkey on a win8 tablet: three clicks for an action

I would love to use three clicks on my tablet to perform an action such as ^w (closing chrome windows). I have tried with "RapidHotkey" script but to no avail. I would greatly appreciate your help. ...
0
votes
1answer
82 views

Autohotkey - How to overwrite an existing hotkey, while remapping the original hotkey

I want to do a seemingly simple action but I'm having trouble figuring out how. I want to remap Ctrl+F -- which natively opens a 'find' window in the program I'm using -- but I want to create a new ...
0
votes
1answer
776 views

how can i edit this AHK script to make it toggle?

So I have this script (thanks is due to whoever): lctrl:: { toggle:=!toggle } [color=red]~[/color]lbutton:: { if toggle When holding Ctrl, it prevents the scripts from working. How do I ...
1
vote
2answers
212 views

Mapping Ctrl+w to Alt+w sends both Ctrl+Alt+w

I'm using Autohotkey to map Ctrl+w to Alt+w for Cloud9 to close inner tabs with Ctrl+w like usual instead of their Alt+w. I tried to use the following simple mapping ^w::!w But it sends Ctrl+Alt+w ...
0
votes
1answer
89 views

How is it possible to find user's keyboard layout change method?

I've written an AutoHotKey script which changes keyboard layout by pressing CapsLock. Pressing CapsLock simply emulates "LeftAlt down + Left Shift + LeftAlt Up" combination. It's obvious, that my ...
1
vote
2answers
312 views

Keyboard shortcut to jump out of text input box (i.e. to remove input focus)

I use autohotkey to perform a ctrl+home combo when I press my middle mouse button, with the result of jumping to the top of the webpage I'm on. This, however, breaks down if the cursor is inside a ...
0
votes
0answers
61 views

How would I play input from the mic through speaker while a key is pressed?

I like to play games with my headphones on, and it feels really weird to not hear myself when I speak. The V key is what I use to transmit, so is there an AutoHotkey script or other program to listen ...
-1
votes
1answer
59 views

XP Right Click doesn't work for multiple selection

When I right click on a text file and select 'Open' it opens the file in notepad. But when I click multiple text files then select 'Open' nothing happens. Can someone help me on this? If it could be ...
0
votes
1answer
942 views

Copy, alt+tab, paste, alt+tab

I want to do a superpaste and wrote this in AHK. Is my code wrong? I get error on both scripts Script 1 ^!c:: Send Send {Ctrl Down}c{Ctrl Up} Sleep, 100 Send !Tab Sleep, 100 Send Send {Ctrl Down}v{...
0
votes
2answers
82 views

Autohotkey - Ctrl combination randomly deletes text as I type

My m key is broken, so I am using an autohotkey script to restore its functionality. m is set as Ctrl + , ^,:: send m Every once and a while, pressing this combination deletes everything that I am ...
0
votes
3answers
568 views

Scrolling horizontally in Adobe Reader using AutoHotkey

I want to use AutoHotkey to scroll a document horizontally in Adobe Reader X. Sending wheel messages (0x20e) does not work, nor does sending scroll messages (0x114). The only method I could find is to ...
2
votes
2answers
1k views

Easily type Unicode characters using AutoHotKey?

For example, I want to be able to type → (right arrow) using AutoHotKey's text replacement feature, and this is what my script looks like: ::|rarr::{ASC 2192} So when I type |rarr in my text editor ...
0
votes
2answers
373 views

ahk SetTitleMatchMode stopped working

Problems I had AHK set up on my computer, a few files (programmen.ahk and grammatik.ahk for example) in the same folder /ahk-script I might have installed some program, because the script does not ...
0
votes
1answer
2k views

Autohotkey for letter a + Enter key

I would like to know the script for replacing my Insert Key with the letter a and then Enter key. So if I press Insert, letter a should be typed and then the enter key.
0
votes
1answer
90 views

Get hotkey to type a random number as if I typed it on a keyboard on Windows?

In many cases I need to not just generate a list of random integers (which is easy), but to type random integers into various software. For example, to skip a random number of lines (1 to 100) in Vim,...