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.

378 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
0 answers
72 views

Adjust Aspect Ratio to window size?

I use ImageGlass as the main app to browse and view my photos. I want to create a functionality that when someone try to resize a window displays a photo, it respects a pre-defined Aspect Ratio. here ...
yfjuu 0's user avatar
  • 23
1 vote
1 answer
326 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
0 answers
128 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
  • 381
1 vote
0 answers
306 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
1 vote
0 answers
189 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
1 vote
0 answers
1k 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
  • 111
1 vote
0 answers
878 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
  • 153
1 vote
1 answer
124 views

Windows: Remapping 'Shift + AltGr' to a single key? Easier access to '4th level' characters on international keyboards

By holding Shift + AltGr, the 4th level characters can be accessed on international layout on most operating systems: C → c (lowercase — first level) ⇧ Shift+C → C (uppercase — second level) AltGr+C →...
Chendy's user avatar
  • 111
1 vote
1 answer
2k views

How do I assign "Switch to Virtual Desktop 1 (2/3/4)" to F1 (F2/F3/F4) in Windows 11?

My fastest way of working is not to have 4 monitors (swiveling or rotating the head takes at least half a second) but to have fixed Virtual Desktops for specific tasks. So I know "Webbrowser: 3rd ...
towi's user avatar
  • 383
1 vote
2 answers
1k views

AHK: Open folder or activate it if already opened

I'm using autohotkey and try to do this: Open download folder (Q:\Down in my case) or activate it if already opened (subfolders don't count, for example still open Q:\Down if I opened Q:\Down\...
Byzod's user avatar
  • 275
1 vote
2 answers
251 views

Mapping every key into a modifier when pressed with another

It has become common to e.g. map Caps Lock to Ctrl as a modifier / Esc when pressed alone. I had an idea to do a similar thing with regular keys, e.g. j+w -> Ctrl+w, but j when pressed alone. I ...
Bartosz Migacz's user avatar
1 vote
0 answers
51 views

Rewriting the input change logic "Alt" + "Shift" (release) on Windows?

I am trying to implement this algorithm, and rewrite Windows input change logic : I tried this LAlt:: While GetKeyState("LAlt", "P") { Input, key, L1, % "{LControl}{...
vdegenne's user avatar
  • 133
1 vote
0 answers
826 views

Changing integrity of a running process, in Windows from command line?

I trying to change running processes integrity, as can be changed in Process Hacker: So, like this, but in command line that I need. I tried Icacls, and chml, and PsExec, but they not capable to do ...
MoneTaliMonolis's user avatar
1 vote
0 answers
239 views

How to Pin to Bottom/Desktop UWP Application Using AHK Windows 10

I'm aware of using setParent from DLL in Windows and I can pin Win32 application on Windows already with this script #o:: Current := WinExist("A") ;ParentID := WinExist("ahk_exe ...
Benyamin Limanto's user avatar
1 vote
1 answer
2k views

Autohotkey and Logi MX Master 3 on windows

this is what I'm trying to achieve using autohotkey: I want my keyboard buttons to be from: Ctrl + Win + Alt to Win + Alt + Ctrl And I can easily do that with autohotkey, but there is a problem: ...
Edoardo's user avatar
  • 11
1 vote
1 answer
299 views

How to force Windows to use %USERPROFILE% when creating multiple shortcuts simultaniously (or achieve the same thing with AHK)?

The problem: Using dropbox at my work, my colleagues can't follow shortcuts I create. PS: I use "shortcut" (what Windows calls them) and "alias" (the Mac nomenclature) ...
Josh's user avatar
  • 159
1 vote
1 answer
125 views

`alt + ctrl + <anyCharacter>` autohotkey mapping used in a jetbrain IDE goes goes through but then a a popup opens after pressing enter

This quesiton is similar to What is preventing ctrl-alt-m from reaching IntelliJ on Windows 10 . However, ctrl + alt + <anyKey> does go through to the jetbrain IDE, pressing any key after that ...
Sebastian Nielsen's user avatar
1 vote
0 answers
2k views

Remapping mouse buttons to single-button hotkeys not usable on the keyboard

I have a Roccat Kone AIMO and I want to remap the buttons to buttons that are not on my keyboard, like the F13-F24 keys. I could theoretically do this via the "assign a hotkey" function in ...
Ultimate_Cactus's user avatar
1 vote
0 answers
1k views

Is it possible to disable coasting/inertia/momentum scrolling with scripts/other software?

Q: What do I mean by coasting/inertia/momentum/flick scrolling? A: It's the feature of trackpads where you can flick the trackpad up or down for a split second, and it keeps scrolling for a second or ...
Sindrebot's user avatar
1 vote
0 answers
131 views

AHK Window Control - Resize: What determines the +12px maximum window size past screen bounds, and can it be circumvented?

Exactly as the title says, my question is: what determines the +12px limit (past screen bounds) for maximum window sizing? And can this be circumvented to increase window size to any arbitrary size ...
Arctiic's user avatar
  • 1,081
1 vote
0 answers
209 views

AutoHotkey script stopped working after I downgraded to windows 7 from windows 10

An AutoHotkey script stopped working adter I downgraded to Windows 7 from Windows 10: Script is started via shortcut Ctrl+Shift+L Monitor wakes via ESC only, but doen't wake if I uncomment DllCall(&...
emoxam's user avatar
  • 121
1 vote
0 answers
142 views

Why do Auto Hot Key scripts stop working at some places in my PC?

I looked up on the net for AHK scripts to get ripple effect around my mouse pointer when I clicked. But it stops working sometimes, like it doesn't work on overlay windows or in the start. Though not ...
crrSeeny's user avatar
1 vote
0 answers
105 views

Run issue with Lexikos AHKControl script?

I've been looking for this script, AHKControl by lexikos all over the place. The original release thread is on the old defunct forum, that may be why I cant see any download links there. I found a ...
ahk_user99's user avatar
1 vote
0 answers
437 views

I don't know how to make the F8 key toggle the script off as well on AHK

F8:: Loop { Send {W down} Sleep 500 Send {W up} Sleep 1000 } Return
germ germ's user avatar
1 vote
0 answers
262 views

Multiple clipboard hotkeys within OneNote

In OneNote, I can copy my pen's drawings and repaste it in. When repasted in, the stroke properties are maintained, so I can erase and edit whatever I need. This is very helpful when writing math ...
Steven Sagona's user avatar
1 vote
2 answers
276 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 ...
Ben's user avatar
  • 11
1 vote
0 answers
34 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 ...
Bernard's user avatar
  • 11
1 vote
0 answers
142 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 ...
Lorem Ipsum's user avatar
1 vote
1 answer
302 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 ...
parml's user avatar
  • 111
1 vote
1 answer
75 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 ...
dmcontador's user avatar
1 vote
1 answer
1k 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 ...
Exp HP's user avatar
  • 376
1 vote
0 answers
78 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 ...
Paul Alminas's user avatar
1 vote
0 answers
64 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 ...
Mateusz Fryziel's user avatar
1 vote
0 answers
160 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 ...
Five One's user avatar
1 vote
0 answers
788 views

preprocessor for .gitignore file (used by git) for RegEx support and more

After a lengthy search without results, I plan to create a preprocessor for the ".gitignore" file. .gitignore does not support regEx, but glob. I would like to be able to use regEx, or both (regEx ...
SL5net's user avatar
  • 281
1 vote
0 answers
2k views

autohotkey script to bind multiple key-presses to one key

^y:: y + & 6 return On pressing control+Y I want the actions of: y^6 to be pressed on the keyboard. The above doesn't work. I can't find where it says in any documentation or tutorial how ...
kite's user avatar
  • 187
1 vote
0 answers
528 views

AHK says invalid hotkey

My AHK script says that numpad3 or 3 is invalid, what is the code I must input to make my script input numbers? F9:: Toggle := !Toggle While Toggle{ 3 sleep 10 4 ...
BBQ Sniffa's user avatar
1 vote
0 answers
74 views

Media Keys for Specific, Uncommon media sites?

I like listening to an old-style radio show called Adventures in Odyssey. It's absolutely awesome, and the site is well made except for a few things. The player automatically continues to the next ...
Micah Prince's user avatar
1 vote
0 answers
559 views

A program won't come to the foreground (Windows 10)

I have a program (QGIS, which uses QT5) that will not come to the foreground. It starts maximized (that's fine) but it stays behind all my other programs. It can be focused, and I can work in QGIS, ...
HeyOverThere's user avatar
1 vote
0 answers
149 views

How to execute a host autohotey combination/script from within VMware VM?

I have: Deepin OS as a VM in VMware workstation pro 15 Windows 10 as my main OS A script at my main OS so that when I click left control + left arrow / right arrow, it switches between workspaces ...
user920252's user avatar
1 vote
0 answers
100 views

Hotkey to play selected folder/s on windows explorer

If one or more folders on windows explorer are selected and then "Alt + Intro" is pressed, windows shows the properties of those folders. I would like to make a custom hotkey to play the files in the ...
Empyrean Kifdelk's user avatar
1 vote
1 answer
701 views

How to let an Auto-Hotkey Script survive desktop-locking?

I got an Auto-Hotkey script #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. #Warn ; Recommended for catching common errors. SendMode Event ; Input worked ...
Peter's user avatar
  • 76
1 vote
1 answer
674 views

Autohotkey script for releasing a key after being pressed in combination with another

Does anyone know what the script would be to release left after I press left and down? I want it so that when I press and hold ← ↓, ← releases but ↓ continues to be pressed.
user437586's user avatar
1 vote
0 answers
1k views

Is there a way to dock an app on the side of screen so other apps maximize to the side of it?

I've seen a few apps (such as instant messaging apps) that will dock to the side of the screen and essentially shrink your total desktop space, meaning that any apps that are maximized on that monitor ...
dallin's user avatar
  • 111
1 vote
0 answers
319 views

Windows 7: Task Scheduler/Engine reduces the Working Set/memory of applications, is there anyway to stop this?

I've been trying to auto-start some Auto-HotKey scripts using the Task Scheduler since it allows the scripts to run with admin privileges without a UAC prompt. Usually, the scripts fail after several ...
RedLetter's user avatar
1 vote
0 answers
172 views

How do I send MouseWheelUp and ignore modifiers being held?

I'm trying to add some behavior that I have bound to shift+MouseWheelUp but occasionally the shift modifier is being applied to what I am sending, here is a simple repro case with output: #NoEnv ; ...
Robot Rocker's user avatar
1 vote
0 answers
932 views

How can I pin AutoHotkey to the Window 7 taskbar?

I want to pin a shortcut for AutoHotkey to the Windows 7 taskbar. However, dragging AutoHotkey.exe to the taskbar doesn't work as expected. On my previous computer I was able to pin AutoHotkey to the ...
Stevoisiak's user avatar
  • 14.4k
1 vote
0 answers
2k views

How to turn ON auto-scroll on Windows 7 PC?

I'm just getting familiar with the auto-scroll feature in my (Vivaldi) browser and I would like to use it everywhere. I know that laptops have this feature but I cannot find a way to enable on Windows ...
bimlas's user avatar
  • 171
1 vote
0 answers
125 views

Can AutoHotKey be able to focus a panel?

Some programs have floating panels within the main window. Since the ability to focus them with keyboard only depends on the framework they are using, is there a way to use AutoHotKey to do this ...
Ooker's user avatar
  • 2,051
1 vote
0 answers
106 views

Why do config files stored in Dropbox not work?

Recently I have moved an AutoHotKey script and an AntiMicro profile to a Dropbox folder to avoid suddenly losing them if something happens. Since then new problems arise: The AutoHotKey script cannot ...
Ooker's user avatar
  • 2,051

1
2
3 4 5
8