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
0 votes
1 answer
27 views

Focus a window under the mouse and send a hotkey

When pressing "Ctrl + WheelUp/Down" with the pointer under Chrome I would like to focus the Chrome window once and then send the ^+tab hotkey as shown in my code: Ctrl & WheelUp:: ...
Elermino's user avatar
0 votes
3 answers
111 views

Is there any way to keep my mouse moving continuously? (without using mouse jigglers)

There is an app that continously monitors all the other apps that I'm using, but it only registers me to be "working" if my mouse/keyboard is moving. So is there any way to get my mouse to ...
Tanuj's user avatar
  • 101
1 vote
1 answer
24 views

Shortcut to Open Folder in New Window with AHK

The problem: in Windows 10, at least version 1809, there is no shortcut to open a selected folder in a new window. Some say they can do it with ctrl-double click or ctrl-enter. None of this, however, ...
SorryForMyEN's user avatar
2 votes
1 answer
67 views

Another Bracket Script issue

I use AutoHotKey to autocomplete all kind of brackets in the following way: typing ( gives ( -> opening brace bracket only typing (( gives () -> open & close brace with input ...
Michel's user avatar
  • 21
-1 votes
0 answers
43 views

Switch focus between two monitors using keyboard shortcut, in windows [closed]

I work on a multi-monitor set up, where I have 2 display monitors. I would like to be working on monitor 1, and then quickly switch focus to monitor 2 via a keyboard shortcut in order to continue ...
Adam's user avatar
  • 1
0 votes
2 answers
34 views

Extract compressed file - Autohotkey

I have WinRar installed and I would like to know if the program has command line functions to extract the compressed files using a hotkey with autohotkey. I haven't found this, so I've seen other ...
Elermino's user avatar
1 vote
2 answers
75 views

Why is the order of modifier keys important in AHK?

I'm using Autohotkey to perform a macro when Alt+Control+f is pressed within Electron. I have: #SingleInstance #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ...
FarO's user avatar
  • 1,904
0 votes
1 answer
123 views

hold CTRL+Double Left Click to open file location on shortcuts

I work with shortcuts of my files and folders very often. Currently we right click on a Shortcut and then look for Open file locationand click on it So... Do you know any method to achieve this easier/...
S.R's user avatar
  • 128
0 votes
1 answer
65 views

How to trigger on alt without triggering on alt+shift and alt+ctrl

In ahk2 LAlt & l:: triggers on lalt+l, lalt+shift+l and lalt+ctrl+shift+l. I want it to trigger on lalt+l only. In other words I want it to NOT trigger on lalt+shift+l and lalt+ctrl+shift+l. Is ...
Matthias Danetzky's user avatar
0 votes
1 answer
90 views

How to get caret positon in a text with AHK?

I want to assign a hotkey to do 3 clicks where the caret position is in a text to select a paragraph from a text on "Anki Add editor" (I don't want to press 3 clicks by mouse). For this ...
yfjuu 6's user avatar
  • 25
1 vote
2 answers
145 views

AutoHotPie radial menus [closed]

AutoHotPie is an app that I recently discovered and it displays a context sensitive radial menu. It has an option that interacts with autohotkey and I think it's possible to write custom scripts, but ...
Elermino's user avatar
0 votes
2 answers
107 views

AutoHotKey run cmd with pretyped text, without executing

Existing Q&A's handle running commands, but I simply wish to open cmd with pretyped text, since a part of the command changes with each use. Fully dummy example, I'd like to launch cmd with del &...
OverLordGoldDragon's user avatar
0 votes
1 answer
124 views

MS Word shortcut key presses for inserting bookmark, sequence, and cross referencing? (Legacy menu Alt+I shortcuts)

It appears my MS Office had updated recently (2023, June/July), and some prior useful MS Word keyboard shortcuts no longer work. Are there any alternative keyboard shortcuts for the following items? ...
plu's user avatar
  • 431
0 votes
0 answers
121 views

Trying to make a macro with AutoHotkey and need assistance

I have been trying to write an AutoHotkey script that renames my game's instance and continues to send keystrokes to the game while I use my mouse and keyboard in a different window. The thing I've ...
Yumo's user avatar
  • 1
0 votes
1 answer
81 views

Check if the pointer is on restore button of a window - autohotkey [closed]

I would like to know a piece of code that allows if the mouse pointer is over the restore "❐" button. I would like pressing and sliding the restore button to the side to split the current ...
Elermino's user avatar
2 votes
1 answer
113 views

Why is the Alt key released and pressed in AutoHotkey's KeyHistory?

I have an AutoHotkey script that sends the left arrow key when Alt + A is pressed. I also enabled KeyHistory. KeyHistory !a::Send "{Left 1}" When I open KeyHistory and press Alt + A, ...
user1046658's user avatar
0 votes
1 answer
83 views

How to automatically run a specific program when another specific program is closed?

I want ahk_exe QTranslate.exe to be running automatically in system tray as soon as another program ahk_exe pycharm64.exe is closed. I've tried this: Loop { if WinExist("ahk_exe pycharm64....
yfjuu 0's user avatar
  • 13
0 votes
1 answer
142 views

How to close a specific program from the system tray Using AHK?

I have a specific program that is running in the system tray icon ("ahk_exe QTranslate.exe"), I want it to be closed automatically from the system tray icon if it is running whenever I open ...
yfjuu 6's user avatar
  • 25
1 vote
3 answers
83 views

How can I create a more-convenient hotkey for the Windows voice-typing feature?

I am trying to make heavy use of Windows' voice-to-type feature and find the Win + H hotkey to be less-than-ideal, because it isn't quick/easy to press with only my left hand when I have my right hand ...
Nathan Wailes's user avatar
1 vote
1 answer
96 views

How to Automatically close a specific window when windows starts?

Hy, I'am a newbie in autohotkey. I have a specific program that I made It start automatically when Windows starts, and this program works by default in the system tray icon. The program is : The ...
yfjuu 6's user avatar
  • 25
1 vote
1 answer
128 views

AHK to reassign mouse indexes for RetroArch emulator

I have an arcade build with lightguns that uses RetroArch. It relies on mouse indexes which can be obtained with a controller remap utility tool. This produces the following information ...
drewjbx's user avatar
  • 65
1 vote
1 answer
169 views

How to copy current timestamp to clipboard in MPC BE?

I have visited every link on the internet but cannot seem to find a solution. What I want to do is that copy the current timestamp of the video I am watching and then paste it into the Word Document ...
user491248's user avatar
0 votes
0 answers
67 views

How to use This Script to Disable horizontal (left/right) mouse input during specific key hold

I am an Occupational Therapist working with a patient who has quadriplegia but had great head movement. He has Windows 11 and He wants to be able to hardcore game on his gaming laptop and we have been ...
Tyler's user avatar
  • 9
0 votes
1 answer
185 views

AHK Send Key Help v1.1-> v2

On runnign the below script FollowedSENDKEY_v2 syntax in the below code and ran it in AHK_v2 , but AHK prompts to download AHK_v1.1. Even tried using parenthesis['Send("{Key}")'] but didn't ...
srt111's user avatar
  • 175
0 votes
3 answers
89 views

How to send '@' when type 'à' twice ("àà" = @) using AHK?

I have a question related to Hotstrings in AHK V 1.1.36.02. I want to write the character @ When I type à twice (àà = @). I've tried this, but it doesn't work: :*:àà::@ Notes : I do have an actual '...
yfjuu 6's user avatar
  • 25
1 vote
1 answer
72 views

Is it possible to ignore pressed key?

I want to make the following rule: when I press CTRL+Alt+Backspace, send CTRL+Delete. I created the following rule: ^!BS:: Send {ctrl down}{Del}{ctrl up} But there is a problem: when CTRL+Delete are ...
hisbvdis's user avatar
  • 123
0 votes
1 answer
125 views

Is it possible to disable Alt click in Autohotkey v2.0.2?

In Autohotkey v1.3. I disabled "Alt" click with Alt:: return But it doesn't work in Autohotkey v2.0.2. Is it possible?
hisbvdis's user avatar
  • 123
0 votes
1 answer
100 views

Automating image compression in Chrome with PowerShell and AutoHotkey

I want to automatically compress images I download through Chrome. As a superuser-in-training, I have tried using PowerShell but need further guidance. Additionally, I almost got AutoHotkey to work ...
JohnTry's user avatar
0 votes
2 answers
507 views

How to send some commands of AHK to a specific program automatically without press any key, just by running the specific program in each time?

Hy I'm new to Autohotkey and I use V1.1+ I would like to send some commands of AHK to a specific program automatically without press any key just by running the specific program in each time I run ...
yfjuu 0's user avatar
  • 13
1 vote
0 answers
56 views

Run Native Windows 10 Apps with Parameters

Previously I installed IrfanView locally (as a normal application). I was able to execute the following successfully in AutoHotkey to open a specific folder within the app: run, "C:\Program Files\...
Ahmed's user avatar
  • 363
0 votes
1 answer
75 views

Can't make Shift modifier work with function keys

I want to map F1-F3 to Copy, Paste and Cut respectively. But if Shift pressed F1-F3 must do what they do by default. Suppose I have some file clicked, so Shift+F2 have to invoke Rename of this file. +...
ioleg19029700's user avatar
0 votes
1 answer
221 views

Overriding Media Keys for Spotify

I've had some success using an autohotkey script* to override the media play/pause key to always control Spotify with the following: Media_Play_Pause:: WinActivate, ahk_exe spotify.exe Send {Space} ...
Brian's user avatar
  • 11
0 votes
2 answers
239 views

How to Auto reload AHK script when focus of a window changes without press any key to reload it?

-Hy, I'm new to Autohotkey I use AHK V 1.1.36.02 Always, I use this method to reload an AHK script : ^r::Reload but I see this method requires me to press hotkey to do reloading every time I make ...
yfjuu 6's user avatar
  • 25
0 votes
1 answer
135 views

How to send some commands of Autohotkey automatically, once I run a specific program?

Hy I want to send some commands of Autohotkey automatically once I run a specific program, example: when I run ("VMware Workstation") by clicking on its shortcut on the desktop I want to ...
yfjuu 6's user avatar
  • 25
1 vote
1 answer
44 views

Can't set a RCtrl HotKey Combination with Autohotkey?

I'm trying to map Ctrl + G to send RCtrl + LAlt hotkey, but it doesn't work. This is my code: ^g:: Send, {RCtrlDown}{Alt}{RCtrlUp} return I've also tried: Send, {RCtrlDown}{LAlt}{RCtrlUp} Send, {...
KeyC0de's user avatar
  • 219
0 votes
1 answer
105 views

Indicate the window is "always on top"

Good day! I would like to add a red border/shadow to the window that is Always on top to identify its state. At the moment my way of identifying it is by reducing the opacity. Any recommendation? ...
Elermino's user avatar
0 votes
0 answers
127 views

Some of the Windows11 startup folder items don't run with windows

I am using Win11 22H2 Build 22621.1485 Some items/programs, when put into the common or admin's startup folder (in: C:\Users\iPC\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup ) are run ...
Bathinda Helper's user avatar
0 votes
1 answer
124 views

AutoHotKey dropdown list which opens links on ME

Trying to create AutoHotKey with drop down list to open internet links (for company). As I created, noticed errors and mistake, that I cannot fix it. First it runs whole script and I have around 80 ...
Ref's user avatar
  • 1
0 votes
2 answers
128 views

In Windows 10, how to automate a set of actions? i.e. turn the Internet off, wait 2 sec, turn on again

My Internet randomly disconnects and I have to go to Adapter options to turn it off and back on again in order for it to start working again. It's tedious and I wish I could just press a key combo to ...
BuzzKirill's user avatar
0 votes
1 answer
149 views

How to tile a background image for an AutoHotkey (AHK) Version 1.1.36.02 GUI?

I have tried several ways to tile my background image for my AutoHotkey (AHK) Version 1.1.36.02 GUI, but always getting error messages. This is my code: Gui, -Caption +LastFound +AlwaysOnTop Gui, +...
rx65m's user avatar
  • 1
0 votes
3 answers
286 views

How to bind L-click to keybind, but only when not typing (in AHK)?

I am a total AHK newbie. I just recently discovered the joy of being able to click by binding L-click to a keyboard key. I bound it to my letter "D" key, however I then ran into what should ...
Boxxy Targaryen's user avatar
0 votes
1 answer
50 views

Once the shutdown button is pressed on windows and it displays shutting down screen, is it possible to cancel the shutdown?

Once the Shutdown button is pressed (mistakenly or intentionally) on Windows (10/11), it displays text "Shutting Down" with circle(s) spinning animation. At this stage, pressing most ...
user3330840's user avatar
1 vote
0 answers
321 views

Auto Copy Selected Text to Clipboard [closed]

I would ask for a script that copies selected text to the clipboard of windows touch screen to use with the dictionary app. I found scripts that will auto copy the selected text to the Window ...
Mahmoud's user avatar
  • 11
1 vote
0 answers
146 views

AutoHotKey on Windows is sometimes not capturing key press

I am using reneo.exe, application downloaded from www.neo-layout.org. Application is programmed using AutoHotKey (AHK). It is capturing all keypresses and sending own output. It works well, but ...
Matúš Löw's user avatar
0 votes
1 answer
56 views

How to get a timestamp from DCR (Digital Court Room) player into a Word processor?

I'd like to be able to get the current playing time of a file in DCR media player and insert it as a timestamp into a word processor (e.g., Microsoft Word).Therefore, something like a macro button can ...
7hcl5's user avatar
  • 1
5 votes
2 answers
1k views

Disable windows start menu without disabling the windows key in windows 10

I recently started using GlazeWM which is a tiling window manager for Windows. Even though the guide said not to, I have set my modifier key as the Win key as I have saved Alt key for shortcuts ...
Kavishka Gihan's user avatar
0 votes
1 answer
172 views

Autohotkey remap key combination part of which was already remaped

My notebook keyboard have Insert key as Fn modifier for Delete and physical PrintScreen key. So I remap PrintScreen to Insert with Autohotkey: PrintScreen::Insert But I want to keep Winkey+PrintScreen ...
Selivanov Pavel's user avatar
0 votes
0 answers
427 views

Some keys on my Logitech K650 keyboard are actually key combinations. How to remap them?

I have a Logitech K650 keyboard. It lacks some keys (such as PrtScn key) and replaces them with other "function keys" (See the picture below). I try to remap these keys to the functions I ...
Betty's user avatar
  • 101
9 votes
4 answers
2k views

How can I assign a keyboard shortcut to increase/decrease the brightness of both my monitors?

I'm using a desktop PC with Windows 11 Home (22H2). I like operating my PC using keyboard shortcuts. I have used AutoHotkey (AHK) to control several things, such as increasing/decreasing the volume (...
Aventinus's user avatar
  • 1,362
2 votes
2 answers
56 views

Merge many Excel columns with a keyboard shortcut or button (if possible, without a new column and formula)

How to merge multiple string columns into a single column, with a separator (for example ;), with Excel? If possible, is it possible to do it without creating a new column and without using a formula, ...
Basj's user avatar
  • 1,541

1
2 3 4 5
27