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
0answers
13 views

Autohotkey right-side prefix out-of-bound effect, correct behavior?

I encounter a problem, illustrated as in this little snippet: #IfWinActive ahk_class Notepad ^a:: MsgBox, Ctrl+A press in notepad #IfWinActive #IfWinActive ahk_class ConsoleWindowClass >^a:: ...
1
vote
0answers
18 views

AutoHotkey autoclick and save images with custom picturename every time

has someone an idea for a autohotkey script which clicks always on the same button and position go to coordinates over a picture make right click and press save as graphics give in a custom filename ...
0
votes
1answer
17 views

Autohotkey and DCS A-10C flight sim

I've set up Autohotkey to start DCS A-10C but when starting, it throws an error that it can't open .\MissionEditor\MissionEditor.lua Autohotkey Run, "D:\GAMES\Eagle Dynamics\DCS ...
0
votes
2answers
26 views

Ignore Windows-L key and Send L (unpress Windows key)

I would like Windows-L to behave just like L. I have tried #L::L But this will not unpress the Windows key, so it's kind of a loop and does not do anything. How can I unpress the Windows key? ...
-2
votes
0answers
19 views

AutoHotKey Script that hold left click and let go

I want to make a script that holds down left click for 6 seconds then let go, and then it keeps doing that over and over, then when I press "Z" it stops. But I don't know how to script :( So, could ...
0
votes
2answers
20 views

Autohotkey angle bracket

Hi I start use autohotkey, I have a simple script to run cmd and execute some command, like this: echo ^Q>COM5 Autohotkey script: run cmd.exe WinWait, ahk_exe cmd.exe ; Send ECHO ...
0
votes
3answers
88 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 ...
2
votes
1answer
39 views

Media keys replaced by F#, how to fix?

I recently got a new bluetooth keyboard that works fine, except for the Media keys. All of the keys in the f# row are acting as f1-f12 keys, regardless of whether the fn key is pressed or not. Is ...
0
votes
1answer
23 views

AHK, where is the end if? (e.g. #IfWinActive keybinds)

An excerpt from AHK doc: How can a hotkey or hotstring be made exclusive to certain program(s)? In other words, I want a certain key to act as it normally does except when a specific window ...
1
vote
1answer
21 views

AHK key combo, or an application which is capable of changing screen resolutions, in windows 7

I have a 4K television (and a Steam Controller) and I need to swap between display modes depending on what I am doing with the TV: 4K @60Hz (4:2:2), PC gaming, 4K video playback 4K @30Hz (4:4:4), ...
0
votes
1answer
40 views

autohotkey script needing suggestions [on hold]

Please look at the following autohotkey script: CAPSLOCK::Suspend LButton:: Loop { SetMouseDelay 20 Click If (GetKeyState("LButton","P­")=0) Break } RButton:: Loop { SetMouseDelay 20 Click If ...
-1
votes
1answer
25 views

How can I write an Autohotkey script that acts like both mouse buttons are continuously held down, if I hold down one mouse button?

1st time post here. So I have this script so far. CAPSLOCK::Suspend lbutton:: ; { MouseCLick, Left MouseClick, Right } I wanted to have my left click act as if i'm clicking both left click and ...
1
vote
1answer
44 views

How to get current timestamp in VLC player without using gui?

I need to automate vlc player and need to get current timestamp for that. Is there any way to do that?
0
votes
1answer
12 views

AutoHotKey script to toogle CTRL and timer

I can't get this script to stop when I hit F7 #MaxThreadsPerHotkey 2 F7:: SetTimer, Spam, off SendInput, {Ctrl Up} return F8:: SendInput, {Ctrl Down} SetTimer, Spam, 1000 return ...
0
votes
1answer
31 views

Breaking loops in auto hot key?

I am trying to break a loop in the middle of the loop (the loop is quite lengthy). I have a break loop in the equation, but it doesn't work when I need it to stop immediately. Here it is... ^!\:: ...
0
votes
0answers
18 views

Dedicated Button or Input Device to send Ctrl+Alt+Delete

I know it's not possible to send Ctrl+Alt+Del with software-based methods (AutoHotkey, etc), but is there some way to do it hardware wise? Maybe a dedicated "Ctrl+Alt+Delete" USB button, like the ...
0
votes
0answers
16 views

Is there a way to delegate host system keystrokes to VMware virtual machine?

I have my Windows system tuned up with AutoHotKey. There is no AutoHotKey for my VMware Virtual Linux machine, unfortunately. So, the virtual machine simply receives the raw input, bypassing ...
1
vote
1answer
64 views

Autohotkey custom Windows key popping up start menu

I have an autohotkey script like this: RAlt::RWin ; right command to alt RWin::RAlt ; right alt to command (windows key) LWin::LAlt ; left command to alt LAlt::LWin ; left alt to command (windows ...
0
votes
1answer
36 views

How to use autohotkey to run command line programs?

I'm sitting behind corporate proxy, I need to switch proxies of git frequently when doing development. So I want to use autohotkey to create a script to toggle proxy setting of git. But I can't ...
0
votes
1answer
16 views

AHK replaces Alt+Shift+LMB to Alt+Shift+Ctrl+LMB?

I'm newbie in AHK, but i could compose few scripts to one. This: ` !+LButton:: SendInput {MButton down}{RButton down} Loop { Sleep, 10 GetKeyState, state, LButton, P if state = U ...
2
votes
1answer
39 views

Autohotkey: Using a 3 key combination to initiate script?

Basically I want to find a solution to make this code work by initiating it with b+down+right key combination. ~b & Left & Down:: ...
0
votes
0answers
19 views

Why autohotkey key remapping not working in putty?

I'm on a windows laptop and a vim user. I've remapped capslock to escape using autohotkey. I have a putty session, when I press capslock, it's still turning on/off upper case instead of sending ...
1
vote
0answers
45 views

Passing control hotkeys to VirtualBox with AutoHotKey

I use VirtualBox on Windows 10 host, and my guest OS is linux openSUSE. Since I still need many windows control hotkeys, I do not use Auto Capture Keyboard in VirtualBox. As a drawback, I can't use ...
0
votes
5answers
104 views

Easiest way to re-order answer key (list of correct answers)

I have a lot of answer keys that look like this: 1.A;8.C;15.E;22.B 2.B;9.D;16.A;23.C 3.C;10.E;17.B;24.D 4.D;11.A;18.C;25.E 5.E;12.B;19.D;26.A 6.A;13.C;20.E;27.B 7.B;14.D;21.A;28.C I'm trying to ...
0
votes
1answer
20 views

Send {%A_ThisHotKey%} don't work always

I am trying to use Send {%A_ThisHotKey%} into one my AHK script. Problem is it doesn't always works. Example: !Tab::Send {%A_ThisHotKey%} How can I make this work in all cases?
-1
votes
2answers
45 views

Why can't I find a tool that lowers the priority of background processes in Windows? [closed]

Since I have started using Windows 10, I contantly have lots of applications open on different desktops. I for example, often have a dozen WinSCP instances open. Each of these take up a few percent of ...
1
vote
1answer
38 views

AutoHotKey Problems

I have an autohotkey script that has two parts, and it seems one part is causing the other to stop working. One part is responsible for whenever I edit the script, it reloads it on c-s. Second part, ...
0
votes
0answers
42 views

Automatically toggle and maximize a window with AHK

How can I use AHK to toogle to certain window and maximize it at certain time. I am trying to use winset (e.g. below) but the problem is that my window name is not fixed. The window name is always ...
0
votes
1answer
34 views

Disable faulty right arrow key using autohotkey

I spoiled some water over my keyboard, and now periodically the right arrow key is activated without me pressing it (e.g. PDFs jump one page ahead, YouTube skips 5s, etc). I used an online keylogger ...
0
votes
1answer
139 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 ...
0
votes
1answer
39 views

How can I map a key combination to a character or modifier key in Windows 8?

I need to map Alt+e to é or to ´ (spanish accent). I read AutoHotKey may work but don't understand how.
0
votes
2answers
159 views

Bluetooth media controls not working windows 10

I have bluetooth headphones synced and playing music from my windows 10 laptop without any problems. How can I make it possible to pause/play, skip track, previous track controls on the headphones ...
3
votes
0answers
39 views

Get value for `Position` property from a Delphi TProgressBar class instance using AutoHotkey (ahk)

I would like to obtain the current Position (progress) property value from TProgressBar1, which is a child of TProgressFrame1 and grandchild of TPanel1 within a particular TProgressDlg Window. ...
1
vote
2answers
101 views

how to send keyboard to the right host when sharing a keyboard among several hosts

I have two hosts (windows-7) running side by side. I use Mouse without Borders to use a single mouse/keyboard (using Synergy I have the same issue, so all here applies too). In each host I am ...
0
votes
2answers
39 views

How to use single script in stead of two simultaneous scripts in autohotkey?

friends, I have two scripts. first script has some hotkeys and hotstrings and the second script contains some timer command to activate the specific window when certain time passes. when i paste the ...
0
votes
1answer
33 views

How do I react to a window losing/gaining focus in AHK?

I play Guild Wars 2 and there's a function to show the names of items that can be interacted with, but the key has to be held down. I'm making it into a toggle, but I'd like for it to work even after ...
0
votes
1answer
57 views

Swapping mouse buttons for select applications under Mac OS X

I am in need of a solution to swap the Middle and Right mouse buttons on Mac OSX. The middle mouse button in X-window and Mac Terminal is used for pasting. But it is too hard to click on my mouse ...
0
votes
1answer
28 views

In Autohotkey , how would I delete the .java part of my command line?

I am frequently using command-line to compile my java code . And I often need to delete the whole .class or .java part. Thus , if the command line current shows : MyTestClass.java I want to use ...
0
votes
0answers
37 views

How to determine classsNN of a control by its color or by its location in autohotkey?

Friends I want to retrieve the text from a control using controlgettext command. I tried to use classNN of the specific control to retrieve its text but the classNN keeps changing so it caused ...
1
vote
1answer
67 views

Need a simple GUI in AutoHotkey script

I am very new to programming and I have a very simple code that I made for a game to not let me go afk (yes, I know there are easier ways). If anyone would be kind enough I would like a VERY simple ...
0
votes
1answer
37 views

How to activate specific window when certain amount of time passes without any activity only in that specific window?

Friends I want that when a specific window is idle for 10 minutes then it should first activate that window and then send f4 key. I work on some online software and it logs out when that software is ...
1
vote
0answers
25 views

Command for switching desktops in Windows 10 [duplicate]

Is there a command to switch to a specific desktop in Windows 10 (or alternatively open an application on a specific desktop which achieves kind of the same effect since windows will automatically ...
0
votes
2answers
107 views

AutoHotKey remap page down to (ctrl + win + left)

How do I remap page down to (ctrl + win + left) for windows 10 desktop switch. and same for page up to (ctrl + win + right)
0
votes
1answer
11 views

Need help fixing titlebar removing script (AutoHotkey)

I made a script that removes the title-bar: http://pastebin.com/yBTp5QML But it doesn't work properly. I want it so that it opens automatically without a title-bar and then able to press Left Windows ...
0
votes
2answers
37 views

How to use Shift+CapsLock+L to select text

I used the following code to remap some key combinations. However, they do not work when pressed by other modifiers. For example, I want to select text using CapsLock+Shift+L (just as Shift+Right ...
0
votes
1answer
41 views

How to add some value in an excel sheet without opening and closing it using com object in autohotkey?

I am trying to use these codes to add some values in a cell without opening an excel sheet and closing it- f1:: Xl := ComObjCreate("Excel.Application") Xl.Workbooks.Open("c:\Users\Manoj ...
0
votes
1answer
73 views

AutoHotKey: Pressing two keys simultaneously without repeats

Is there a way to press two keys simultaneously and bind it to a macro key (for example, pressing "s" and "d" simultaneously and then bind it to "a" key) without it having the "s" repeat multiple ...
1
vote
1answer
39 views

AHK (Binding keys)

I'm trying to bind the following keys. I want to be able to use Shift+LeftArrow to navigate between two windows. Since I mainly use these two windows in one monitor It would be great to move ...
0
votes
1answer
59 views

How can I make AutoHotkey scripts work on computers without AutoHotkey installed?

Normally to open a .ahk file you will need to have installed AutoHotkey and then it will appear in the taskbar. However recently I found a .exe file that was actually an auto hotkey script and it ...
0
votes
1answer
54 views

autohotkey help-#inputlevel but not overwrite key combination?

[help] #inputlevel but not overwrite key combination ? i have 2 ahk script ,both remap "k" ,but script 1 has "scrolllock & k" script1.ahk k::msgbox script1 scrolllock & k::click ...