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
0 answers
18 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
  • 19
1 vote
1 answer
43 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
36 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
  • 19
1 vote
1 answer
29 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
  • 55
0 votes
1 answer
42 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
1 answer
26 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
26 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
  • 165
0 votes
2 answers
37 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
  • 19
1 vote
1 answer
44 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
46 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
60 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
3 answers
114 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
  • 11
1 vote
0 answers
39 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
32 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
59 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
-2 votes
1 answer
42 views

macro for action in specific application

I am intending to map a certain keypress to a specific action, regardless of whether it is the active window, for example forward and back in VLC Player. Rather than the in-app hotkeys, I am looking ...
gothicsurf's user avatar
0 votes
2 answers
101 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
  • 19
0 votes
1 answer
76 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
  • 19
0 votes
1 answer
27 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
  • 207
0 votes
1 answer
58 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
69 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
97 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
69 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
73 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
163 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
35 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
219 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
114 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
51 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
1 vote
2 answers
495 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
116 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
162 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
3 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,352
2 votes
2 answers
55 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,554
0 votes
0 answers
32 views

Using Multiscreen blank with autohotkeys

I am finding a lot of forms saying to use autohotkeys in order to use multiscreen blank but there is no explanation for someone who does not know how to use autohotkeys. I want to be able to toggle my ...
TaxC's user avatar
  • 1
0 votes
1 answer
185 views

Is there any command line to open an existing image with Snip & Sketch?

Is there any command line to open an existing image with Snip & Sketch? Or better if you could open Snip & Sketch and paste an image from clipboard to Snip & Sketch.
hana's user avatar
  • 101
0 votes
2 answers
73 views

What are these Windows filename transformations?

i use Windows 7 x64. If i right-click on folder called C:\Longer than (3) and click "Send to" and send it to an .ahk file that simply shows the arguments it received, it shows C:\LONGER~3. ...
Avtem's user avatar
  • 3
1 vote
2 answers
56 views

Autohotkey Direction For Microsoft Photo Navigation With Keys In Zoom Mode

Microsoft Photos does not allow navigating through pictures if you are zoomed in into one, only when you are at default zoom level. This is a bit confusing, so I decided to create a Authotkey ...
Cyman's user avatar
  • 365
0 votes
0 answers
92 views

Completely disable some keys on a keyboard in windows

With AutoHotKey or with the PowerToys keyboard filter I disable lets say LCtrl. Copy & paste etc won't work, but LCtrl+Alt+Del will still bring up the screen that offers the task manager and ...
alparius's user avatar
  • 189
0 votes
0 answers
266 views

Someone help my script auto-hotkey with discord?

I have a script with auto-hotkey which works like like this: Every other minute, it will auto-type a message. The next minute, it will delete the auto-typed message automatically. The script I am ...
Grabbee's user avatar
  • 11
-1 votes
1 answer
66 views

Find multiple matches and place all at multiple location instance

so I have this comma delimited file that I need to import but I need to do some replacements first. A sample is as shown below; item A,<u>1 a1</u> red<u>2 a2</u> etc,content,,,,...
Gideon's user avatar
  • 181
1 vote
1 answer
93 views

How to check for NumPad status?

I would like to use my numeric pad for some actions when it is disabled (AutoHotKey V2) This is easy for the inner keys that have different names depending on the state of NumLock: NumpadRight:: ...
WoJ's user avatar
  • 2,724
0 votes
2 answers
444 views

Is it possible to change the cursor indicator color depending on the input language?

on windows 10 there is an option to change the cursor indicator color (Win+I -> Ease of Access -> Text Cursor). I would love (even pay if there was an app for it) to change the text cursor color ...
xpanta's user avatar
  • 147
1 vote
1 answer
149 views

How to match both partial ahk_class and whole ahk_exe at the same time

What I want to achieve is this: SetTitleMatchMode, 2 #ifwinactive ahk_class BCGPMiniFrame: ahk_exe FOXITPDFEDITOR.EXE ahk_class BCGPMiniFrame: part is only a partial match of ahk_class BCGPMiniFrame:...
David H. J.'s user avatar
0 votes
1 answer
320 views

Set a Specific Window Size Relatively to the Screen Resolution via AutoHotKey

I created a script that automatically sets the window size for certain apps. I put it in Startup so it works independetly. I needed this because I have a laptop with 2560x1600 screen resolution and I ...
scharyu's user avatar
0 votes
0 answers
342 views

Map left backslash key only in US ISO keyboard

I am used to working with the US ANSI keyboard but right now, I am stuck with the US ISO keyboard since ANSI is unavailable for my new laptop. It has two backslash keys and the left shift key is split ...
CodePanda's user avatar
  • 133
0 votes
2 answers
299 views

Shortcut for Windows Explorer to jump to the last folder in the folder-file-list? Autohotkey

I am searching for a shortcut to jump to the last folder in Windows Explorer (ignoring the files following). Example: Here I want to jump to folder 2022-09 without typing in "2022-09". I am ...
Avatar's user avatar
  • 2,477
0 votes
0 answers
115 views

Autocomplete text

Here's a doubt, there is a tool that has the autocomplete function (such as https://www.autohotkey.com/board/topic/60998-autocomplete-12/) with the addition that if I start to write another word and I ...
Elermain's user avatar
0 votes
0 answers
125 views

Programmatically accept all cookies in a Windows browser

How can I get Windows to confirm / OK all cookies in all sites in a Windows browser? I don't mind if the language is PowerShell or AutoHotkey or similar, and I don't mind if the browser is Edge or ...
YorSubs's user avatar
  • 599
0 votes
0 answers
219 views

Is it possible for Windows to only change focus to another window upon releasing the mouse click?

I would like to know if it is possible for Windows to only change focus upon releasing the mouse click? For example. I have Chrome full screen, and I download a file. Then I open Windows Explorer and ...
John Stoneman's user avatar

1
2 3 4 5
27