Skip to main content

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

Merging some FFMPEG code into AutoHotKey

I'm using some ready-made AutoHotKey that calls upon FFMPEG. I need to tweak what FFMPEG does, but I'm just so lost, so would really appreciate some help. It currently does some simple FFMPEG scaling (...
10 votes
6 answers
15k views

How to fix AHK to send keys to RDP fullscreen?

How do you get AutoHotKey hotkeys to work with Remote Desktop in fullscreen on Windows 7?
6 votes
6 answers
28k views

AutoHotkey: how to send contents of clipboard as key presses?

I'm making an autohotkey script to run highlighted text through a calculator, and i need to send the contents of the clipboard as a sequence of keypresses, since the calculator doesn't really support ...
1 vote
1 answer
33 views

Autohotkey not sending some of the commands

I have an autohotkey script that is moving the cursor around the screen, clicking and editing data, and (should also) copy and paste information. The copy and pasting does not seem to work and after ...
7 votes
3 answers
15k views

What does the "_8wekyb3d8bbwe" extension in Windows metro apps mean?

Metro apps in windows seem to have a special extension to their installation directory, for example the new Windows Terminal is located at C:\Program Files\WindowsApps\Microsoft....
0 votes
0 answers
77 views

Windows explorer is in an infinite crash loop after installing a MS Store App

I'm running Windows 11 23H2. I installed this AutoHotKey port from the MS store: https://apps.microsoft.com/detail/9nq8q8j78637?hl=en-gb&gl=US/ Immediately after installing, my windows explorer ...
0 votes
0 answers
17 views

Autohotkey 2 using InputLevel for a hotkey in a hotstring not working

Autohotkey seems clear that you can use a hotkey in a hotstring by using#InputLevel, but none of the four hotstrings below work for me. If, instead of using \ in the hotstring, I use some un-mapped ...
0 votes
0 answers
31 views

How to create an AutoHotKey v2 hotstring with a backslash in the trigger

This hotstring in my ahk file doesn't work: ::1\2::½ Other hotstrings work, but not this one. I assumed the problem was that backslash is a hotstring EndCharacter so I tried also doing: #Hotstring ...
64 votes
5 answers
67k views

Ctrl+Backspace inserts a small box instead of erasing

When I press Ctrl+Backspace, sometimes a small square is inserted, instead of the entire word being erased. The problem only happens in some text boxes; in others the shortcut works like it should. ...
11 votes
3 answers
45k views

How to open a URL in a new browser window with AutoHotkey?

With AutoHotkey on Windows you can associate a shortcut to open a URL - web page or link - in the default browser with the following script: ^!g::Run https://mail.google.com/ This will open Gmail in ...
1 vote
4 answers
1k 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 ...
12 votes
2 answers
7k views

Windows virtual desktops: Cycle back to first desktop at end

Let's say I have three virtual desktops. I know I can navigate through them using: ctrl + windows + left | right However, is there a way to make it cycle back through to the beginning if I reach the ...
-1 votes
1 answer
60 views

Triple actions shortcuts (Single, Double, Hold) with combination of single key and modifier keys

I have been looking for triple action (Single tap, Double tap, Hold) shortcut mapping method that I can easily tweak and assign with AHK and I have finally found this amazing solution. This single, ...
23 votes
2 answers
40k views

Open Powershell as Administrator at Current File Explorer Directory Keyboard Shortcut (Windows 10)

Let's say that I'm browsing through Windows File Explorer, and suddenly I decide that I would like to open Powershell as administrator at the current directory (the directory that I'm at in File ...
5 votes
5 answers
4k 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 ...
1 vote
0 answers
24 views

AHK script causes lag in Photoshop when using WinTab

The problem only happens when using WinTab. I added the following to PSUserConfig.txt # Use WinTab UseSystemStylus 0 Here is my test script. It will show a white block near the cursor. I've set ...
1 vote
1 answer
164 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 ...
1 vote
1 answer
62 views

How do I prevent the GUI overlay from disappearing when I play videos in fullscreen?

I made a screen dimmer in AHK. The code below is a stripped-down version: opacity := 100 Gui 1:New,+AlwaysOnTop -Caption +ToolWindow +E0x20, GuiName Gui 1:Color,Black Gui 1:Show, x800 y300 h300 w300 ...
0 votes
1 answer
5k views

What's the utility of the return command in autohotkey?

In the instances where the return command returns a value, the utility is obvious. I have seen the return command being used even when it is seemingly unnecessary. Let me show the following examples: ...
0 votes
1 answer
51 views

Key remapping is causing the Ctrl+Alt+Del to be executed in AutoHotKey

In windows when I press Ctrl + Delete in a text editor, a whole word in front of the cursor gets deleted and I want to remap this to the combination: Left Ctrl + Left Alt + P, which means when I press ...
0 votes
1 answer
182 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 ...
10 votes
5 answers
38k views

How do I figure out the installation path of apps from the Microsoft Store

I want to set up a hotkey tool called Autohotkey to open up a program called "Trello" when I hit a certain key combination. For that I need to know the absolute path of the program. The only problem ...
4 votes
4 answers
7k views

AUTOHOTKEY | WinMove | Virtual Desktop of choice

UPDATED-STATEMENT: 20181118@205016@SUN A suggestion was made to manually focus the Virtual Desktop of my choice, but this eliminates me from doing other tasks on another Virtual Desktop. Still waiting ...
0 votes
1 answer
4k views

Keyboard shortcut and right-click-menu item to ZIP all selected files/folders (with or without password)

I'd like to be able to ZIP all selected files/folders in one keyboard shortcut. How to enable this feature in Windows 7? Currently these are the options: Right-click > 7-Zip > Add to temp.zip Right-...
0 votes
1 answer
137 views

Disable Ctrl Key in Photoshop using AHK

This is what I have tried. LCtrl is disabled successfully but all the shortcuts using Ctrl such as Ctrl+Z are also disabled. I don't know why {vkE8} isn't working. #IfWinActive ahk_exe Photoshop.exe ...
2 votes
1 answer
4k views

How to edit/change/modify the Syntax Highlighting Color in VS Code

How to edit/change/modify the Syntax Highlighting Color in VS Code, ie for Autohotkey and/or Markdown languages? For example: Im using the High Contrast theme (black background), and in that theme, ...
1 vote
2 answers
4k 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 ...
0 votes
1 answer
88 views

How can autohotkey minimize this window if there is no minimize button on it?

I installed IDM software on my system, and this pop-up appears in the middle. There is no minimize button, so the only way to close the window is by using the solution. However, Autohotkey with a ...
1 vote
1 answer
5k views

Swapping Keys with AutoHotKey

My laptop is a Lenovo Yoga 910 with Windows 10. I'm trying to use AutoHotKey to make the following mapping: PgUp::RShift RShift::PgUp End::PgDn PgDn::Right However, with the exception of the RShift:...
2 votes
2 answers
1k views

How to hide or disable the cmd console when starting an executable

I wrote an executable that displays a window on the screen and gets some use input. It is bound to ⊞ Win+N: #n:: Run "C:\Perso\dev-perso\dly\dly.exe" My problem: this also opens a cmd (or ...
0 votes
3 answers
61 views

Where to put caps lock remapping in vim_ahk (AutoHotkey)

Where in the rcmdnk/vim_ahk AutoHotkey package (which file) should I try to remap the caps lock to esc? I know little about AutoHotkey, and for the longest time my entire AHK script consisted of: #...
2 votes
2 answers
5k views

Connecting/Disconnecting to Bluetooth Device via CMD, PS, or AHK?

I'm at my wits' end right now. I'm on the latest version of Windows 10 and I just want to run a script to connect/disconnect to my Bluetooth headphones when executed. I've looked at a couple other ...
0 votes
0 answers
15 views

Is there a way to automatically switch between two windows of the same app in Windows 10 [duplicate]

I have two windows of the same program that i am constantly switching over manually, (each window needs the whole screen). Is there a way to automate the process of switching between them for let's ...
4 votes
1 answer
4k views

Windows 10 Volume Mixer fails to keep System Sounds muted over Remote Desktop Connection

After having muted the System Sounds on the remote desktop machine, it shall unmute itself after several seconds. This pattern is persistent. I use my laptop at work, and use Remote Desktop Connection ...
1 vote
1 answer
34 views

I want to reuse GUI code instead of making multiple copies, but GUI is not showing text properly

I want to reuse GUI code instead of making multiple copies (code redundancy), but the problem is that when I press 1 it shows First,  but when I press 2 it still shows First instead of Second. This ...
0 votes
1 answer
69 views

Rebinding Direct Input joystick keys

A game I want to play reads joystick/gamepad input, but doesn't support key rebinding. Whenever Joy6 is pressed, game fastforwards text, and I want this key to increase system volume instead. ...
1 vote
1 answer
117 views

This single, double and hold AHK script is not working

I found this script from https://autohotkey.com/boards/viewtopic.php?f=5&t=51596 it works perfectly. I like that it is easy to understand and change your desired key easily. The thing is: It ...
2 votes
1 answer
4k views

AHK is possibe to make this script works in inactive window

Is it possible to make this script work in a specific inactive/minimized window. ? loop { dllcall("keybd_event", int, VK, int, SC, int, 0, int, 0) dllcall("keybd_event", int, VK, int, SC, int,...
0 votes
1 answer
5k views

How to disable view page source in Chrome?

I need one help from you that is to block the page of viewing the source (original sites should be opened but source page must be blocked). I have almost come to the solution with the help of ...
1 vote
1 answer
462 views

Fix repeated keystrokes without destroying AutoHotkey scripts

I have a mechanical keyboard problem where sometimes one key press registers as two. I solved this by installing Keyboard Chattering Fix and setting a minimum 50 ms delay requirement between key ...
1 vote
3 answers
3k views

Win 10: How can I make an window be always on top but non-interactive (clicks go through)?

I'm trying to set up a small window in my screen that is always on top but at the same time "ghosted" (not sure about the term), meaning I can't interact or activate it and any mouse click ...
4 votes
2 answers
5k views

How to make AutoHotkey automatically close a pop-up dialog?

Question I'd like AutoHotkey to automatically detect when a certain pop-up dialog appears and take certain actions. How do I do that? Concrete example In my particular case, I'd like AutoHotkey to ...
3 votes
0 answers
123 views

How to bind USB control knobs to adjust the volume on specific applications?

I want to control the volume level of 2 specific Windows Applications using my USB piano's control knobs (Spotify Premium & discord). FIRST TRY - AutoHotkey. The KeyHistory does not detect any ...
0 votes
0 answers
32 views

New to MacOS and trying to replicate a few things that I already do using Autohotkey on windows

Below is my Autohotkey script that automatically copies the text of any questions that I ask on the websites for ChatGPT, Gemini, and Claude (I have them installed as chrome apps) by detecting the ...
1 vote
2 answers
149 views

Switch windows using windows key + # shortcuts by window not app? Also show numbers on taskbar?

You can use the keyboard to switch programs in Windows 11, for example Windows + 2 goes to the second app on the taskbar, and Windows + 3, 3 goes to the second window of the third app. But it is a big ...
1 vote
0 answers
110 views

How to convert a script using VarSetCapacity to AHK v2?

I have been using the script Advanced Window Snap, which snaps windows to various places of the monitor, which uses the function GetMonitorIndexFromWindow to determine in which monitor a window is ...
0 votes
2 answers
152 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 ...
13 votes
1 answer
7k views

AutoHotkeyA32 vs. AutoHotkeyU32 vs. AutoHotkeyU64

The portable .zip archive for AutoHotkey contains 3 executables: AutoHotkeyA32.exe, AutoHotkeyU32.exe, and AutoHotkeyU64.exe. Based on the filenames, I assumed 32 and 64 refer to 32-bit and 64-bit ...
2 votes
1 answer
185 views

AutoHotKey WinGetText not retrieving text

I am learning AutoHotKey and trying to see whether I can use it to automate certain processes that we need to do. It will open a browser window using MS Edge (once I get it working I can code it to ...
1 vote
0 answers
27 views

Drag to open link in container tab, in Firefox

What I want: Drag a link to a direction (left for example) then it was opened in a container tab (I have only one container currently) What I have: Firefox beta 124 Violentmonkey Glitterdrag that can ...

1
2 3 4 5
28