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.

368 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12 votes
2 answers
6k 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 ...
Caedan's user avatar
  • 231
6 votes
0 answers
3k views

Set Scaling of individual applications in Windows

I occurs to be that I want any app I'm not looking at to be scaled down (to say 100%), but the one in focus to be scaled up (to 200%). This would both make maximal use of my hi-res laptop screen for ...
Martin Cleaver's user avatar
5 votes
1 answer
2k views

I Need to Keep a Window Active

I need to keep a browser window active while I use another window. "Keep-on-Top" is not what I'm looking before because when I switch pages, it still goes inactive. I'm trying to keep a page ...
JaneDoh's user avatar
  • 51
5 votes
0 answers
3k views

Is there any way to type the clipboard to the guest in VMware

Similar to this question for VirtualBox: How do you auto-type the contents of the clipboard from the host into a guest Virtual Box instance? Is there any way to type the contents of the clipboard to ...
Michael Firth's user avatar
4 votes
1 answer
2k 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" ...
Jimmy's user avatar
  • 41
4 votes
0 answers
798 views

Are there any other modifier keys on Windows?

I'm trying to use the Win key as a modifier key on Windows. So far, the best approach I found is to map it to another key using AutoHotKeys. For example, I can map the left Win key to the left Control ...
Pablo Fernandez's user avatar
4 votes
1 answer
3k views

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

The problem: after having muted the System Sounds on the remote desktop machine, it shall unmute itself after several seconds. This pattern is persistent. The physical setting: I use my laptop at work,...
llinfeng's user avatar
  • 1,203
4 votes
2 answers
4k 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 ...
Lernkurve's user avatar
  • 1,962
4 votes
1 answer
1k views

Switch any program to kiosk mode

Sometimes friends or even unknown people visit me and we are doing something on my computer. I often find myself in the situation when I want to leave the computer but I don't completely trust the ...
ogr's user avatar
  • 41
3 votes
0 answers
3k views

Remap Bluetooth headset button on Windows 10?

I have Bose QC 35 II and I am trying to get the Multifunction button to mute/unmute calls in MS Teams. For the purpose I will be using AutoHotKey, but in order to do that I need to capture the message ...
checho's user avatar
  • 238
3 votes
1 answer
247 views

How can I recover an autohotkey script that has been over-written

I have an autohotkey script that is continuously running on my computer. I inadvertently saved a blank script over it, but the original is still running in the background. I tried to recover the ...
user7909676's user avatar
3 votes
0 answers
510 views

AutoHotKey: Odd window sizing behavior on Windows 10

I realise this is probably a really obscure problem but hey it's the internet. I have a 24" portrait monitor, and I wanted vertical snapping. I found an online script, but for most types of windows, ...
Marlon's user avatar
  • 131
3 votes
1 answer
745 views

Remap of Browser_Home key fails when browser window is not in focus

I have a bluetooth remote with a Browser_Home key, which I'm attempting to remap with AutoHotkey on my Windows 10 machine. By default, pressing Browser_Home does one of two things: If the window in ...
jjc385's user avatar
  • 165
3 votes
0 answers
1k views

Monitor file change in AutoHotkey without a loop or timer

I am interested in having an .ahk file reloaded automatically whenever it changes. The reason is that I am hosting my .ahk files in Google Drive, and so the script may be changed on a running computer ...
bers's user avatar
  • 1,568
3 votes
0 answers
3k views

Passing control hotkeys to VirtualBox with AutoHotKey

I use VirtualBox on Windows 10 host, and my guest OS is linux openSUSE. Since I still need many windows control hotkeys, I do not use Auto Capture Keyboard in VirtualBox. As a drawback, I can't use ...
Maximko's user avatar
  • 193
3 votes
0 answers
271 views

Get value for `Position` property from a Delphi TProgressBar class instance using AutoHotkey (ahk)

I would like to obtain the current Position (progress) property value from TProgressBar1, which is a child of TProgressFrame1 and grandchild of TPanel1 within a particular TProgressDlg Window. ...
mpag's user avatar
  • 295
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
2 votes
3 answers
283 views

How to make AutoHotKey ignore a hotstring when it is preceded by a period?

I have an AutoHotKey script that expands abbreviations into full words or phrases, but I ran into a problem today. I wanted to add org as a hotstring for "organization", but realized that ...
techturtle's user avatar
  • 9,086
2 votes
2 answers
4k 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 ...
OskeeHelpMe's user avatar
2 votes
1 answer
46 views

How can I swap 2 keys for a specific language/KB layout on Windows 10?

I'd like to swap the W and ] keys, which are 'ჯ' and 'ჟ' on the desired keyboard layout, so that the W key outputs the latter character and the ] key the former, and only when said keyboard is in use. ...
Lena's user avatar
  • 21
2 votes
1 answer
764 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 ...
zpo's user avatar
  • 21
2 votes
0 answers
80 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 ...
DudeFine's user avatar
2 votes
1 answer
378 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 ...
blokeley's user avatar
  • 893
2 votes
1 answer
163 views

Prevent Winkey + Alt + Enter from opening Windows Media Center and rebind it

I've bought a new remote control and am using AHK to rebind some of its buttons. It doesn't have a software to set what each button will do, "it just works". Using KeypressOSD.ahk I'm able to see ...
Hikari's user avatar
  • 307
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, ...
Faye's user avatar
  • 121
2 votes
0 answers
164 views

How to prevent window popup when new program starts?

Say I launch Firefox when reading a PDF. To prevent distraction, I want it to open silently until I manually switch to it. Is there a way to do this? All the search result I found is about JavaScript ...
Ooker's user avatar
  • 1,931
2 votes
1 answer
3k 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,...
bohalko2's user avatar
2 votes
1 answer
2k views

Autohotkey: Use Appskey as modifier, suppress context menu

AppsKey & t:: Send Test This prints 'est' and opens the menu. I would like it to print 'Test' and to not open the menu.
Emerson's user avatar
  • 251
2 votes
1 answer
946 views

Shift+Ctrl+Tab not working in chrome with mapped Caps Lock key in Windows using SharpKeys

As suggested by this post, I used SharpKeys to map my Caps Lock key to Ctrl. A weird problem is that while other functions using this Caps Lock key as Ctrl works fine(like Caps Lock+Tab works fine in ...
xgdgsc's user avatar
  • 1,458
2 votes
1 answer
3k views

In AHK, how can I create a new Chrome browser window and activate it

I would like to create a new Chrome window with the following AutoHotKey script: #c:: Run, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "--profile-directory=Default",,,PID ...
Raj's user avatar
  • 330
2 votes
1 answer
2k views

re-mapping media keys on a USB keyboard

Is it possible to re-map the media keys (volume, reload, etc) on a USB keyboard so that the order matches the one on my laptop? I want to re-map ONLY the ones on the USB keyboard. I've tried ...
Justin I's user avatar
2 votes
1 answer
112 views

Open link at cursor position with keyboard shortcut

I'm using a rich web application that replaces my browser's right-click context menu with a menu of custom options. I want to be able to open a link in a new tab and right-click doesn't work for the ...
Keyslinger's user avatar
  • 1,733
2 votes
0 answers
449 views

How to use Windows key in Autohotkey as part of a macro

I have been using autohotkey on a terminal with 122 keys. I remapped the keys so that their original funky uses are now much closer to normal modern computers. I also mapped a scancode to Windows ...
berserkfan's user avatar
2 votes
1 answer
2k views

AutoHotkey: While 2 keys are pressed = press 3rd key?

In AutoHotkey, how can I do the following: While Space and W are pressed down at the same time, send LShift every X milliseconds; do this until Space and W both are released. I'm a beginner; what I ...
Ian's user avatar
  • 21
2 votes
1 answer
376 views

Refining an AutoHotkey script

The purpose of this script is: The first two rows of hotkeys always effective. The remaining hotkeys work at NO TEXT INPUT Status only. In other words, when the small vertical lines are flashing ...
roy2012's user avatar
  • 21
2 votes
1 answer
648 views

Autohotkey AppsKey does not work properly in Chrome

I try the following hotkey in Chrome: !F3::Send {AppsKey}{Up} Chrome opens the context menu but it doesn't move the selected line in the context menu. Instead the {Up} command moves the scroll bar ...
Mert Nuhoglu's user avatar
  • 2,370
2 votes
2 answers
183 views

Detection of Objects on Remote VM, like start button, cmd prompt using hotkeys

I am able to take remote control of any virtual machine using AutoHotKey . I want to run ipconfig command on remote machine. It can be performed using mouse clicks, but I want to do it using keyboard ...
ptb's user avatar
  • 21
2 votes
2 answers
337 views

AHK macro automation software: GUI does not show

I remember in the past I have used AHK to do some repetitive task. I did it via some GUI; it recorded my mouse gestures and my keyboard strokes. I have downloaded it again but now I see no GUI, just ...
walla's user avatar
  • 21
2 votes
1 answer
3k views

Difficulty with middle click - MS Wireless 6000 scroll wheel sensitivity

(Microsoft Windows) When I try to middle click on the scroll wheel, I usually just get a little bit of scrolling instead. I am using the Microsoft Wireless Laser Mouse 6000, which is very ...
K Robinson's user avatar
  • 1,029
2 votes
2 answers
95 views

How to remap Enter as a right control modifier in Win 8.1?

I did this with keyRemap4macbook on OSX. Enter alone works as Enter but Enter+Key becomes Ctrl+Key. How do I do this in Windows?
LoveProgramming's user avatar
1 vote
1 answer
132 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
57 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
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
1 vote
0 answers
499 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
  • 143
1 vote
1 answer
86 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
1k 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
604 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
  • 265
1 vote
0 answers
40 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
1 answer
1k views

NirCmd volume control of certain applications from Volume Mixer not working?

So I use this app to mute microphone communication in Valorant. But I also want to mute the game itself. The devs of the game have separated these 2 so in Volume Mixer (SndVol.exe) they are 2 ...
usa alb's user avatar
  • 11
1 vote
0 answers
582 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
2 3 4 5
8