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
24 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
18 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
20 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
19 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
21 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
18 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
130 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
20 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
15 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
90 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
80 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
14 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
37 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
40 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
30 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
65 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
16 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
55 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
12 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
44 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
37 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
78 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
229 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
162 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
68 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
69 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
56 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
14 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
91 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
29 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 ...
0
votes
0answers
17 views

PowerAutomate - Taking data from table and submitting a web form for each line entry

I have an excel spreadsheet on onedrive and I'd like a power automate process to read each line in the excel and submit a web form (website) for each entry in the table taking the values for each ...
0
votes
0answers
18 views

Need help to correct my AutoHotkey script

What I want: Holding Key x keeps holding key x and also holds key y, releasing key x releases key x and also releases key y: My script: ~x::Send, {y Down} x up::Send, {y Up} Problem: When holding x ...
0
votes
1answer
35 views

IfWinExist, WinActivate are not detecting java.exe windows

I'm trying to close a particular java.exe window that I gave a custom title when I launched it from cmd. Here's what it looks like in windowSpy.ahk: CloseMe ahk_class ConsoleWindowClass ahk_exe java....
0
votes
0answers
26 views

Autohotkey script to restore a minimized window to the correct monitor?

How can I make a window that has been minimized get restored to the screen that it was on at the time that it was minimized? I am using the following command to minimize a window: ;Minimize ^Down::...
1
vote
0answers
30 views

Using AutoHotKey to remap Ctrl to Alt while retaining Alt+Tab as Task View hotkey

I am a long (long) time Mac user, who has recently begun working in a company that uses Windows. I am using AutoHotKey to remap the Alt key to Ctrl, to mimic the placement of Mac's cmd key. The issue ...
0
votes
0answers
21 views

Autohotkey Alt+Letter doesn't work

My problem is quite simple. Here's my ahk script below RCtrl::RWin RWin::RCtrl LCtrl::LWin LWin::LCtrl ; script below is in question ================ Alt::CapsLock CapsLock::Alt ; hotkeys below do ...
0
votes
0answers
17 views

How can I get language code for Vietnamese Telex?

How can I get language code for Vietnamese Telex? I tried this site but it(0x042A) is wrong for Vietnamese Telex. I'm using windows 10 version 1909 (OS Build 18363.1198).
1
vote
1answer
298 views

How to remap a key on my keyboard depending on whether it was quickly pressed or held down for a second or more?

I got myself a new keyboard (Keychron K6), and long story short, I'd like to have my Esc key only be mapped to Esc when I hold it for a second. If I just tap it like a normal keystroke, I need to have ...
0
votes
1answer
623 views

Autohotkey: Find and focus windows by name accross virtual desktops

I'd like an ahk script to find and focus running windows across virtual desktops on Windows 10. I found one earlier but alas forgot where it's from, maybe someone here knows. I think it was to help ...
1
vote
0answers
52 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 ...
1
vote
0answers
57 views

Autohotkey - Wish to map: Right Shift to emulate holding down Right Mouse Button plus Left Shift

I have not used autohotkey before and I seem to be able to half way to where I want, but not the whole way. I have looked through 300 posts on this forum and trawled through the AHK help pages but I'...
1
vote
1answer
127 views

Can AppleScript detect if a text entry field is active/focused within an active application?

I have a number of shortcuts that I am using via QuicKeys and AppleScript to perform various functions in a focused application. Certain shortcuts, such as individual alphanumeric keys and the ...
0
votes
1answer
19 views

How to send the value of a windows environment variable?

I have a function like this: Seep(toSend){ Send, %toSend% Sleep, 1000 } I use it like this: Seep("Typing a new line{Enter}") I want to send the value of a windows environment variable ...
0
votes
1answer
63 views

How do I configure AutoHotKey to use mouse for shortcut?

I am trying to create a script that will change desktops based on the following: When I hold down the right mouse button (i.e right click) and then use the scroll wheel. Scrolling up should go to left ...
1
vote
1answer
66 views

Windows 10 hotkey (keyboard shortcut) for switching between speakers [duplicate]

Many times per day I need to switch between different speakers, which I do using my mouse in these 3 clicks as shown here: I would much prefer if I could press a certain key or combination of keys on ...
0
votes
1answer
103 views

Remap keys in the keyboard for a specific language only in Windows 10

I wonder how can I remap keys in the keyboard for a specific language only in Windows 10? I'm using three languages in my OS: English, Hebrew, and Syriac. The problem is that the Syriac layout in ...
0
votes
0answers
36 views

How to trigger Windows 10's battery saver when lid's closed or after a certain time

I was wondering if it would be possible to turn on the Windows 10's battery saver (the one you can enable when clicking the battery icon on the taskbar) when the lid is closed (also locking the PC) or ...

1
2 3 4 5
24