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
0answers
12 views

Run .cmd file every x minutes when app is being used?

I'm trying to find a way to incrementally back-up a folder every 15 minutes, but only if VS Code has been used/in focus since the last time it was backed up. Does anyone have an idea for how I could ...
0
votes
0answers
13 views

Create Script for Keyboard Shortcuts [closed]

I would like to create an Autohotkey script that to do this: Ctrl + A, Delete, Alt +Tab, Down, Ctrl + C, Alt + Tab, Ctrl + V, Enter, End. Please help.
2
votes
3answers
38 views

Autohotkey: closing vlc media player

I want to setup a hotkey for closing vlc or windows media player using autohotkey. I came across this page in the guide- https://www.autohotkey.com/docs/commands/WinClose.htm But it doesn't seem to ...
0
votes
1answer
5 views

Map key “F1” to left click in mac

Map key "F1" on the external keyboard to left-click in mac What is the simplest way? Is there any built-in setting that could achieve this?
2
votes
1answer
44 views

AutoHotKey script switching between virtual desktop using ^!LButton and ^!RButton highlights one app from the start menu

I've created an AutoHotKey script which allows me to switch between virtual desktops more comfortably but there is a weird issue that makes a random (but most often the most recent) app ask for ...
1
vote
2answers
251 views

Context switching out of Remote Desktop via keyboard command

Problem: I need to swap between the RDP context and the windows host context so that key commands like Alt+Tab and Win work as intended in their given environments. Environment: I'm running Windows ...
0
votes
0answers
13 views

Use AutoHotKey to change the audio input/output for a specified Program?

Sorry, this is my first using this software and I already tried searching on their forum, to no avail. What I want to achieve is to have a keyboard shortcut key to change the audio input/output for a ...
0
votes
1answer
46 views

How to disable zoom (ctrl + scroll wheel) in chrome dev tools?

I want to disable zooming in and out chrome dev tools when I hold ctrl and scroll. One way is to completely disable this action from mouse settings for all applications but that I don't want. Can I ...
0
votes
1answer
30 views

How to remap a key to several characters in AutoHotKey?

I'm making a keyboard layout where nearly every key maps to several characters. I know the usual syntax for remapping a key to a single other key is a::b, but that doesn't seem to work for multiple ...
0
votes
1answer
19 views

Remapping Left Shift + up arrow to another key

Hi guys total AutoHotkey newbie here, I was wondering if any experts could help me with a quick script? I would like Left Shift & up arrow key to type the question mark key "?" And Left ...
0
votes
1answer
20 views

Best strategy to block concurrent button presses. Block spacebar while holding CTRL

So a few weeks ago I modified my mechanical keyboard to lube the switches, I broke the Left-ctrl key's contacts on the pcb making it a dummy switch. I have since ran jumpers from the left-ctrl to the ...
0
votes
1answer
24 views

Browser Keyboard shortcuts not working

I recently switched to a PC ( from a laptop). I use keyboard shortcuts extensively for Chrome (and other browsers), but they're not working on the PC. Specifically, Ctrl+T for new tab and Ctrl+Tab for ...
0
votes
1answer
12 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 ...
0
votes
0answers
16 views

Multiple cursors at once functionality, just as in the Visual Studio Code but in every Windows application?

Was wondering if this: https://code.visualstudio.com/docs/editor/codebasics can be implemented with WinApi or by DLL calls using something such as https://www.autohotkey.com/docs/commands/DllCall.htm ...
1
vote
1answer
23 views

Blocking specific keys while a function is running with AutoHotkey

So I made this script with AHK and it works but what I want it to also do, is to make it so while the function is running, it wouldn't be able to be triggered again. So I want to either deactivate the ...
0
votes
1answer
35 views

Is there a keyboard shortcut to uncheck, not toggle, a checkbox?

If looking at a webpage checkbox you know whether it needs to be toggled with mouse or spacebar to uncheck. However, with tools that simulate keyboard usage I am not aware of a way to definitively ...
1
vote
2answers
45 views

How to turn my screen black and then turn it back on on command?

I need to find a way to make my pc (windows 10) screen turn black, without turning the computer off (or putting it to sleep) and then turn it back on on command. This is because I need t make a ...
0
votes
0answers
27 views

How can I reprogram keys of one of my keyboards?

Not sure if this is a question for this forum but: I have a laptop and a connected keyboard (where some keys are not working properly). I would like to edit the keys so that all keys on the left side (...
0
votes
0answers
20 views

how do i get rid of “press 1 to answer” on google voice?

I want to be able to answer a call by just pressing the hotkey "a" to pick up the call without having to then press "1" on google voice. how do i do this? thank you
0
votes
0answers
2 views

Windows 10 configure application precedence for capturing key strokes

I am running windows 10, and from time to time need to remote login to a mac. And I have since encountered some key stroke capturing issues. So I have the wox launcher bond to Win + Space. And if I ...
0
votes
0answers
28 views

Make mouse wheel behave like arrow keys for camera movement in RTS game

I want my mouse wheel to work like the arrow keys on the keyboard, to move the camera in a game the same way I can do it with wheel left/right, which I could bind via the mouse software. But I could ...
0
votes
1answer
22 views

ahk script hotkeys losing their original functions

I use some hotkeys in an ahk script but they don't do their original functions if I assign hotkeys. Example: I may have double press esc for alt + f4 closing an application but then esc does not do ...
0
votes
0answers
26 views

Convert multiple files with AutoHotkey

I'm trying to setup AutoHotkey to automatically convert a selected file to PNGs when pressing a CTRL+ENTER. To do the conversion, I'm using the CLI version of Filestar. I have figured it out how to ...
0
votes
0answers
22 views

How to create or is there a shortcut to mute the sound of the current window/program?

What I want to do is mute the sound of the current program/window in Windows. How I would normally go about this, is RMB on Sound Icon in taskbar (or through Control Panel -> Sound) -> Open ...
1
vote
0answers
562 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 ...
2
votes
1answer
50 views

AutoHotKey Send Dynamic Key

I'm trying to create a script with a user-configurable hotkey I can bind to the dynamic hotkey, but I can't seem to send a hotkey. Here is a simple script illustrating the problem #Persistent #...
0
votes
0answers
18 views

How to make WinMove fill the margin?

^l::WinMove, 0, 0 When I press ^l, though the window move to the left corner, some space remains unfilled. Is there any way to make WinMove to fill the margin?
0
votes
0answers
26 views

Windows 10 delay on key-up event trigger

In my PC with Windows 10 when I press a key and release it, In my programs (chrome, Autohotkey,...), it took a little bit of time, a key-up event to be called. I mean the key-up event doesn't trigger ...
1
vote
0answers
223 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 ...
0
votes
1answer
153 views

Run script on startup in W10 - version “20H2”

Uh-oh. I have an Autohotkey script which has always run on startup, for years. I have just updated my W10 OS from 1607 to "the latest", which appears to be called "20H2". Neither ...
0
votes
0answers
18 views

How to write #HotIf multiple conditions succinctly in autohotkey

I'm using following script in Autohotkey #HotIf !WinActive("ahk_exe xyzzy.exe") && !WinActive("ahk_exe ubuntu.exe") && !WinActive("ahk_exe code.exe") &...
0
votes
0answers
73 views

AutoHotkey set audio output device for active window

I have been using a certain Actual Window Manager function, that I cannot seem to replace with AutoHotkey. Basically what I want, is to set output audio device only for 1 window. Not the whole system. ...
0
votes
0answers
85 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 ...
1
vote
1answer
33 views

Reassigning left Win key + Tab to left control + tilde?

I want to reassign the left Windows key + Tab to left control + tilde permanently throughout the windows environment. Ideally I would hope to do that without third party software (e.g tweaking windows ...
0
votes
0answers
215 views

Mute current game sound with keybind, but not Steam Overlay

I like to play Rainbow's Six Siege, but I also browse the internet as well as watch youtube in between. Sometimes you die early in the round and have to sit and watch cameras for 3 minutes or so, ...
0
votes
0answers
17 views

TextExpander equivalent plugin for IntelliJ on Mac

I'm looking for a TextExpander equivalent plugin for IntelliJ IDEA on Mac. From what I searched, I could only find code snippet plugins. What would be the best options for text expansion? Referred to ...
0
votes
1answer
103 views

AutoHotkey Script to add attachment to current email

I want to type a hotstring e.g. ,addfile in the body/subject of an email and a specific file will be added to the email that I'm writing. I've got my main autohotkey script that I've setup with a ...
0
votes
1answer
14 views

Use OR with condition in AutoHotkey script

I created the following AHK script to answer my own question here: NumpadEnter:: Process, Exist, httpd.exe If ErrorLevel = 0 { Run, C:\XAMPP\apache_start.bat,,Hide Run, C:\XAMPP\...
0
votes
1answer
157 views

Restart XAMPP without using the Control Panel

I use XAMPP to run several local development environments. For the last few years I've been using an AutoHotKey script that lets me launch the XAMPP Control Panel with a keypress. While this is ...
0
votes
1answer
107 views

Make AutoHotKey's Edit This Script open scripts in Sublime Text 3

For years I've been using AutoHotKey to automate a few common tasks on my system using hotkeys. By default clicking Edit This Script on a running script (from the Windows system tray) opens Notepad. ...
0
votes
1answer
184 views

Autohotkey - GetKeyState breaks if a new key is pressed

I'm trying to create a script that presses the space button, as long as it is physically pressed. By example, if I hold down the space bar, the script would replicate spaces with Send. As soon as I ...
3
votes
1answer
230 views

How to create a shortcut to end a specific task?

I am trying to achieve the following: when I press a combination of keys, let's say Ctrl+f4, I would like to end the application called "Matlab". I have downloaded AutoKey and tried the ...
1
vote
2answers
207 views

netsh advfirewall command was not found

I have an advanced rule setup in Windows firewall that I want to be able to turn on and off via an AutoHotkey script. RunWaitOne(command) { shell := ComObjCreate("WScript.Shell") ...
1
vote
2answers
69 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 ...
0
votes
1answer
113 views

How to use AutoHotkey to copy a particular password?

I would like to copy a password (i.e password only from an entry) from keepass using AutoHotkey. Is this possible? I am quite sure, the keepass entry can be selected using a shortcut as below, but ...
0
votes
0answers
81 views

Send Keystrokes to PowerPoint with Autohotkey

Trying to use ControlSend, in an AutoHotkey macro, to send up and down arrows to PowerPoint. I've tried using Window Spy to figure out the FrameClass, the EXE, etc. and nothing I have tried has worked....
0
votes
0answers
17 views

Using the keyboard to open a website in Chrome without tab

I prefer to use the keyboard instead of the mouse, but I have not yet found a good way to open up Google search results without just pressing tab many times, which takes a long time. Are there any ...
0
votes
0answers
17 views

Windows 10, kiosk mode, two local windows (not using Azure) how to startup an exe file?

Running Windows 10. Proxy server is on, allowing only two sites A.com, B.com. Edge's Kiosk mode is on, which launches A.com and B.com. Cool. The sites open, but since the kiosk mode signage option ...
0
votes
0answers
137 views

Mic mute/Unmute Toggle is not working

Trying to toggle Mute/Unmute for my microphone on the latest windows 10 build but its not working what I'm trying to do below in the code is toggle the mic and each time I do toggle the mic a ...
0
votes
1answer
33 views

Same Hotkey för different purposes - change content

I want to use the same hotkeys for different purpose. EX. competition1 have fields for 'first name' 'last name' adress e-mail Competion2 have fields for 'first-name last name' e-mail adress I want to ...

1
2 3 4 5
25