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 a full-fledged scripting language.

Filter by
Sorted by
Tagged with
1 vote
2 answers
146 views

How to detect "full silence" on my computer and start playing a given sound file when that happens, which then stops when there is other sound?

I have a very frustrating problem. I often listen to live ASMR on Twitch while working. Frequently, things happen that make a lot of noise, such as a dog barking or somebody screaming in the ...
user avatar
  • 11
3 votes
1 answer
970 views

How do I make AutoHotKey on my host OS still work even when I have my VMware virtual machine in fullscreen or focused?

I have numerous shortcut keys defined in my AutoHotKey script. I'm completely crippled without them. They normally work, but whenever I have focused my VMware virtual machine, or when I'm "immersed" ...
user avatar
  • 31
0 votes
1 answer
133 views

Why is AutoHotKey somehow causing a nightmare of error messages which attack me until I reboot the machine?

I have this in my test.ahk: #§:: SetTitleMatchMode, 1 WinActivate,Testwindow goes here return It's supposed to let me press WinKey + § (the key to the left of the "1" on my keyboard) to instantly ...
user avatar
1 vote
0 answers
32 views

Why does my local webpage behave differently every other time when opened through a AutoHotKey shortcut?

Here's the setup: I have a test.html file hosted on http://127.0.0.1/test.html. I have a bookmark to that URL in my Firefox browser. I can left-click or middle-click it any number of times to open as ...
user avatar
  • 11
1 vote
2 answers
791 views

Autohotkey capslock remapping and use as a modifier

Setting up the following script: #persistent SetCapsLockState, AlwaysOff CapsLock::Esc Capslock & j::Send {Blind}{Down DownTemp} Capslock & j up::Send {Blind}{Down Up} I am having a problem,...
user avatar
  • 113
1 vote
1 answer
685 views

WM_NCHITTEST and Detecting the Title bar of a Window

I am relatively new to the world of programming. I've been using AutoHotkey a lot and came accross a code using WM_NCHITTEST. The code below: When the mouse cursor is above a window Title Bar, Right ...
user avatar
  • 11
2 votes
1 answer
542 views

UAC: Autohotkey calling the Windows 10 command window; es.exe by Voidtools Everything

New readers please (just) read my second edit. (Original title: "UAC: Cannot use the command window anymore with Autohotkey (Windows 10)", intermediate title: "UAC: Cannot run es.exe (Voidtools ...
user avatar
  • 21
0 votes
2 answers
135 views

Windows10 change keyboard layout of specific device

lets say I have my keyboard with its numpad (104 keys), and I want to use another numpad (USB or BT, doesn't matter) for custom functionalities (shortcuts, macros...). I can program to change the ...
user avatar
2 votes
1 answer
730 views

Auto-typing passwords etc. into a Hyper-V guest is not working. What can I do?

I am running several virtual machines (Windows and Linux) on a Hyper-V server. I want to use Keepass to enter passwords stored on my local machine through the Hyper-V connection into the remote ...
user avatar
2 votes
1 answer
497 views

How to combine two keys as a hotkey with Autohotkey?

I want to combine Left windows key with printscreen, for on my mouse xbutton2. i can't get any further than Xbutton2::Lwin Many thanks !
user avatar
1 vote
1 answer
62 views

any way to make script work while ctrl key is pressed down

#SingleInstance ignore ~LButton:: Time := A_TickCount KeyWait, LButton If ((A_TickCount-Time) < 300) Click Return i am trying to make autohotkey when enabled [via eventghost] ...
user avatar
  • 185
1 vote
0 answers
85 views

How to enable Arensito Keyboard Layout on Windows

I am experiencing negative effects of RSI and am evaluating alternative keyboard layouts. The Arensito Keyboard Layout comes up frequently. How can I use this layout on Windows? Unfortunately, the ...
user avatar
0 votes
1 answer
180 views

Swap LWin with LAlt not working properly

My workflow is: While working with the laptop keyboard, no changes needed While at the desk with ext monitor, use Apple external keyboard. Run AutoHotKey script to swap LWinwith LAlt. Kill AHK ...
user avatar
  • 101
0 votes
1 answer
56 views

Any way to see what processes are filtering or reassigning events? And/or can OS do this itself?

I've downloaded the respected utility X-Mouse Button Control, which can translate button events into other events. Autohotkey is another such application. I believe my work PC has some utility, ...
user avatar
4 votes
2 answers
8k views

How can I toggle Bluetooth on and off via a shortcut on Windows 10 1903

I would like to emulated with a shortcut the process of 1) opening the Action Center and 2) clicking on the bluetooth icon. My solution was to use AHK to map a keyboard shortcut to running a .bat, ...
user avatar
  • 1,236
3 votes
1 answer
433 views

AutoHotKey: remapping Alt+Shift+<plus> to \

I would like to have a autohotkey remap for Alt + Shift + nonnumpad_plus_sign (equivalent to Alt + ? in my keyboard) and have that send a backslash '\' I've tried stuff like: !+NumpadAdd::\ (which ...
user avatar
  • 172
0 votes
1 answer
328 views

Autohotkey - toggle keys

I want to achieve this press "a" > output "a" press "a" again > output "b" press "a" again > output "a" press "a" again > output "b" keep repeating these... Below script does what I want, but with ...
user avatar
0 votes
1 answer
690 views

AutoHotKey: How to add special character bullet points with a string of letters?

I am trying to add special characters (different types of Dots as seen on the last row. This works but I would like to use a string of letters #+d::Send {U+25CF} ; dot solid I tried using this - ...
user avatar
  • 179
0 votes
3 answers
534 views

Disable/pause AHK script while game is minimized

I have an AHK script that allows me to bind joystick presses to keystrokes. These keystrokes are used to trigger functions in a trainer that runs in the background while I play a game. The script ...
user avatar
2 votes
1 answer
52 views

How can I jump 2 words at a time throughout Windows?

Ever since I learned about using Ctrl with the arrow keys, backspace key, and delete key, I've felt my typing and editing productivity go up significantly. I'd like to know if there's an easy way to ...
user avatar
0 votes
0 answers
47 views

How to make remap Alt to Win button when there are Xbox Game key-bindings

I would like to bind my LAlt to LWin button. I have the AutoHotKey script: LWin::LAlt It works great except for a few key sentences: Win-r, Win-g, Win-b. They have their roots in Xbox Game ...
user avatar
  • 109
0 votes
2 answers
75 views

Windows is delaying release of a key, and sometime the key get stuck forever

I am experiencing this issue from quite sometime. Keys get stuck (not physically) until I press them again. Sometime for 1-2 seconds, sometime forever. Here is one the example I have A2 01D d ...
user avatar
0 votes
1 answer
434 views

How can I create an .ahk (or similar) hotkey to perform program-specific actions?

I'm an AHK user with no real computer programming background or education (I suppose Excel would be the closest thing I have to such knowledge/experience, excluding day-1 hello, world exposure here ...
user avatar
  • 690
1 vote
1 answer
32 views

Automate navigation to element in list

Consider the following list of elements in a focused standard win32 list control in a legacy Windows application that runs remotely (WindowSpy can't get its controls or text): 110 120 210 220 221 ...
user avatar
1 vote
1 answer
543 views

How to rewind youtube when not focused

The context: Sometimes I am playing a fullscreen game on one monitor while watching a video on the other. Oftentimes the game I play has no "fullscreen window" mode. (right now I'm playing one that ...
user avatar
  • 346
1 vote
0 answers
65 views

I need help figuring out if this task can be done by Auto Hot Key

I am new to AutoHotKey. I spend about twenty minutes setting up my computer each day and I am just doing things I think this program can automate, but there are a lot of steps and I am also unsure if ...
user avatar
1 vote
1 answer
86 views

autohotkey - customize keyboard [duplicate]

I use a laptop with Italian keyboard, but I need the tilde ~ and the backtick ` characters, which my keyboard is not endowed with. I got to know AutoHotKeys and it seems to fit. But I could not find ...
user avatar
  • 38
0 votes
1 answer
591 views

Paste a text with Autohotkey containing special characters

I'm using Word for making index cards for my studies and often I need to use the Equation feature. There's no hotkey for the subscripts and always opening the menu and chosing the desired one is ...
user avatar
  • 3
0 votes
1 answer
630 views

Is it possible to open multiple tabs in ConEmu and run a command in each of them with one click? (or with Autohotkey)

I'm developing an application that uses multiple microservices (springboot apps) that i have to start when i'm setting up the enviornment. Is the a way to open multiple tabs in ConEmu and run in them ...
user avatar
0 votes
2 answers
1k views

AutoHotKey for holding down C key and relese it in game

Hi I'm in a game that I can't crotch without having to hold down C key. I just want to know if there is a script that allows you to do it like if I hold down C key for sec it keeps holding it until ...
user avatar
0 votes
1 answer
299 views

Autohotkey to conditionally ignore native keystroke

How can I make a hotkey be specific to an application, but conditional to some factor so that if the condition is not true the hotkey will be handled by the native/default handler? I've made a hotkey ...
user avatar
  • 293
0 votes
1 answer
202 views

Relationship autohotkey PDF

I'm making an autohotkey script to populate several fields in a PDF form. The script begins to take a number in a excel sheet, opens a site in an intranet, pass some values to variables, then closes ...
user avatar
2 votes
0 answers
35 views

Holding Shift and Click solution

I`m trying to make a simple macro shift and left click are hold for 20 sec and durring that time another key is in the loop for this 20 sec. Seems like after shift and click are down nothing else i ...
user avatar
0 votes
1 answer
301 views

Switch between windows on only one virtual desktop with Autohotkey - with alt+tab working as-is

I'm looking for a autohotkey function, system shortcut or dll call to cycle between all windows on the current virtual desktop. Windows 10 has this option (Pressing Alt+Tab shows windows that are ...
user avatar
15 votes
4 answers
7k views

How do I disable specific windows 10/Office Keyboard Shortcut (CTRL+SHIFT+WIN+ALT+D)

it seems that Office has decided to hi-jack the keyboard shortcut CTRL+ALT+SHIFT+WIN+D. That might not seem like a problem, but I have assigned that keyboard shortcut in AutoHotKey and have been ...
user avatar
0 votes
1 answer
57 views

Execute something from the start menu using autohotkey

How do I start something from the windows start menu using autohotkey? I can do Send ^{Esc}MyAppName{Enter} And everything works except the last {Enter}. The screen stops on the open start menu ...
user avatar
  • 431
1 vote
0 answers
54 views

How to map NumPad1 to Alt+Enter?

I'm new to AutoHotKey, and I'm trying to map NumPad1 to Alt+Enter. I have done this by right clicking on the AHK window and editing script, which is in My Documents/Autohotkey.ahk and overwriting the ...
user avatar
0 votes
1 answer
153 views

AutoHotKey: Double press script from SetTimer malfunctioning

(Not sure how to edit the script for it to become readable on StackExchange) If a letter has modifiers and is being sent on this double press script from SetTimer on the manual (https://www....
user avatar
1 vote
1 answer
488 views

AutoHotkey Keyboard Shortcuts Not Captured When Certain Programs Are Focused

I have a very simple AutoHotkey script that listens for certain key presses to run Windows Shortcut files (lnk): F21:: Run "C:\Users\djcim\Google Drive\Powershell Scripts\Admin Shortcuts\djcim\...
user avatar
  • 219
1 vote
0 answers
67 views

AutoHotkey; using a modifier as a normal key and then as modifier

Novice on AHK here. Here are the lines: ^Alt:: Send, b ^!PGDN:: Send, r The "^!" part of the second line gets send continuously before PGDN is pressed, and I get something like "bbbr", so I have ...
user avatar
2 votes
1 answer
305 views

How to highlight focussed window using bug.n

I'm using bug.n which is based on autohotkey for my window manager on Windows 10 and want the window with current focus to be obvious by having a coloured border like the top left window in the image ...
user avatar
  • 893
0 votes
1 answer
102 views

Multiple key presses for one key press hotkey

I really don't know to create this script. When I press "r" key I want both "r" and "w" to be pressed. Can anyone help me script this command?
user avatar
  • 1
-1 votes
1 answer
88 views

Combining and improving 2 ahk scripts into 1

I've created a script by editing from those scripts I found around about gaming. I'm not even sure if it's 100% effective, but somehow I kind of know what I want. Is it possible to combine the below ...
user avatar
0 votes
1 answer
890 views

How to Split Screen & Auto-size Programs on Vertical Monitor

My monitor is one a vertical orientation, so snapping windows to top and bottom is impossible. I am using Windows 10. I need help finding a way to: Auto start Google Chrome and Internet Explorer. ...
user avatar
  • 1
0 votes
1 answer
218 views

AutoHotKey: How do I set the starting value of the current loop iteration?

I've made a basic AHK script that adds unique metadata to each file on a system I use every day. The idea is to add _01 to the first file followed by _02 to the second file and going up forever until ...
user avatar
  • 751
0 votes
2 answers
109 views

AHK first character is repeated for hot strings

::cl::call For this hotstring, after hibernation for cl gets ccall the first character is repeated in windows 10. ~^.::reload I added this hotstring to reload. AHK version: v1.1.30.03 - April 5, ...
user avatar
0 votes
1 answer
57 views

How do I remap the mouse clicks so that a previously held down key carries on sending inputs once I release the remapped key?

Let me explain my scenario. I'm holding down the 1 key producing a string of 1's. When I right or left click my mouse, the string of 1's stop briefly before resuming once again to produce a string of ...
user avatar
2 votes
2 answers
6k views

How do write a toggleable hold down key in AHK?

I'm trying to write an AHK script that allows me to do the following: Press the t key to toggle the 1 key being held down so that it types a bunch of 1's indefinitely until I press the t key again. ...
user avatar
3 votes
4 answers
5k views

How to bind F13-F24 keys to the 12 side buttons on Razer Naga?

I'm trying to use the Razer Synapse configuration app to bind the 12 number buttons send extra F keys from the 13..24 range, but I'm not having any progress. When I'm in the right menu, I can press F1 ...
user avatar
  • 31
0 votes
0 answers
121 views

AutoHotkey - How to send a key that is not part of the current keyboard layout

I use a program that uses \ as a shortcut. I use a French AZERTY keyboard, where the backslash can only be typed using a key combination: Alt Gr+8 (or Ctrl+Alt+8). So I cannot activate the shortcut (...
user avatar
  • 1,009

1
3 4
5
6 7
26