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
1 answer
349 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 ...
user avatar
0 votes
0 answers
364 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 ...
user avatar
1 vote
1 answer
52 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 ...
user avatar
  • 11
0 votes
0 answers
771 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, ...
user avatar
0 votes
1 answer
415 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 ...
user avatar
1 vote
1 answer
34 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\...
user avatar
  • 10.4k
0 votes
1 answer
517 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 ...
user avatar
  • 10.4k
0 votes
1 answer
331 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. ...
user avatar
  • 10.4k
0 votes
2 answers
647 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 ...
user avatar
3 votes
1 answer
269 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 ...
user avatar
  • 41
1 vote
2 answers
337 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") ...
user avatar
1 vote
2 answers
167 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 ...
user avatar
0 votes
1 answer
221 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 ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
  • 99
0 votes
0 answers
235 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 ...
user avatar
0 votes
1 answer
37 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 ...
user avatar
0 votes
1 answer
187 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....
user avatar
1 vote
0 answers
104 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 ...
user avatar
1 vote
1 answer
973 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 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 it be ...
user avatar
0 votes
1 answer
872 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 ...
user avatar
  • 783
1 vote
0 answers
76 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 ...
user avatar
  • 690
1 vote
1 answer
474 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 ...
user avatar
  • 1,943
1 vote
1 answer
38 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 ...
user avatar
0 votes
1 answer
174 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 ...
user avatar
  • 25
1 vote
1 answer
1k 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 ...
user avatar
  • 1,249
0 votes
1 answer
603 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 ...
user avatar
  • 157
0 votes
0 answers
74 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 ...
user avatar
  • 1
1 vote
1 answer
134 views

How can I use a controller to click on certain places of my screen?

I have been playing an online poker game, which I really enjoy. My only complaint is that I have to sit at my PC holding my mouse all the time, which isn't very relaxing for me. I was wondering if I ...
user avatar
  • 13
0 votes
1 answer
28 views

A portion of a page disappears. What happens?

One day I visit https://ga-dev-tools.appspot.com/campaign-url-builder and the portion in red rectangle of that page disappears. I open the browser in addons disabled mode (which means there is no ...
user avatar
  • 1,771
0 votes
1 answer
52 views

Add extra Fn key combinations, for example Fn+4 = Home

I play SC2 on my laptop, and therefore I have mapped the normal arrow keys to other buttons. To counteract this, I've mapped the numbers 8 4 5 and 6 on my numpad to arrows. Problem is, the original ...
user avatar
0 votes
3 answers
501 views

Autohotkey - Restart Explorer Shortcut (Useful when crash)

Is there a way to restart all instances of Windows Explorer? It's useful when explorer starts acting up, eg. high cpu .
user avatar
  • 242
1 vote
0 answers
105 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(&...
user avatar
  • 111
1 vote
1 answer
613 views

Magic-FN like Binds For Normal Keyboards

SO, I'm obsessed with my Anne Pro 2 (even though it really is not reliable) but I wanna know if there is another way to use its software (Obinskit) or something similar to it. Basically I want to hold ...
user avatar
2 votes
3 answers
5k 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....
user avatar
  • 123
0 votes
1 answer
52 views

How to change ALT+TAB to CONTROL

I do a lot of switching between apps and I'd like to know if there is a way to do that using Autohotkey. is there a script for that ?
user avatar
  • 1
1 vote
1 answer
233 views

Environmental Variables don't change when reloading an AutoHotKey script

Setup I have an AutoHotKey script that shows the value of a Windows Environment Variable, crnt: #c:: MsgBox, "crnt is " . %crnt% The Problem When I change crnt #c still shows the old value. ...
user avatar
0 votes
1 answer
541 views

An AutoHotkey script hotkey to text

I want to write a script so when I press Control key and 5 for example the system type certain sentence -have a good day - for example .. please help!
user avatar
0 votes
1 answer
45 views

Multiple hotkey - keyboard shortcut

In VS code the shortcut for "zen mode" is CTRL + K Z The explanation is this: "Ctrl+K, let go of Ctrl and K, press Z It's common in Linux to have such shortcuts, almost never seen in ...
user avatar
1 vote
1 answer
83 views

Opening the about: links used specifically for Firefox from File explorer

Help with opening the about: links used specifically for Firefox. More info HERE I am trying to open them from File explorer. I tried dragging about:addons URL from Firefox Adrress bar to Explorer. ...
user avatar
0 votes
2 answers
1k views

Looking to detect if key is pressed, execute action

I am looking for a solution to my problem: I have a program that launches a secondary program when a button is pressed, however this secondary program doesn't have a shortcut to exit. This means I ...
user avatar
  • 3
1 vote
1 answer
101 views

IE will not activate

I want to Activate IE 11 if it is not active This is part of legacy tests, so it absolutely must be IE, not Edge or any other browser. I want to bring the IE window to the foreground so I can run F5 ...
user avatar
2 votes
2 answers
120 views

Switch back and forth between last active two programs with AutoHotKey?

I am trying to get a single tap of ALT to switch back and forth between programs, but not interfere with or break the native functionality of holding the key, however A_PriorKey [below] only seems to ...
user avatar
1 vote
1 answer
235 views

Restore the cursor back to the position it was when Hotkey was first triggered?

I am trying to move my cursor vertically down till it gets to the bottom of the monitor (1500) then have it wrap around by moving it back to the initial position. The problem am having is that every ...
user avatar
2 votes
2 answers
2k 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 ...
user avatar
2 votes
1 answer
2k views

Are there any alternatives to Razer Synapse with full macro functionality for a mouse?

I've had an extremely bad experience with Razer Synapse, because it causes constant and random BSOD's on my computer. I use a sensitivity clutch for one of my macro buttons, but when the Synapse ...
user avatar
  • 163
46 votes
14 answers
14k views

What to do when I need more keys than my keyboard has?

I have a standard keyboard. With AutoHotKey, I have mapped F1 to F12 to perform extremely specific tasks which I have muscle-memorized, and in addition to these, I have numerous WinKey+Letter ...
user avatar
0 votes
1 answer
142 views

How to add default extensions with the Notepad++ Run... feature?

I regularly use notepad++ for editing my AutoHotkey scripts. I like to use the notepad++>Run feature to test them and validate them. It works good but here's what would take it to the next level -- ...
user avatar
  • 103
1 vote
1 answer
2k views

Reconfigure Razer Orbweaver without Synapse 2.0

Is there a way how one can remap the Orbweaver's buttons to other keyboard functions, or even macros without using the Razer Synapse 2.0 Software, if the device, in this case the Orbweaver, is not ...
user avatar
2 votes
1 answer
615 views

How can I scroll efficiently horizontally Microsoft Paint? (Autohotkey maybe)

I just want to use Paint for a whiteboard style sketching on math problems etc. And I really need a way to navigate efficiently on the page. Maybe even like: hold space + move mouse, to grab the page ...
user avatar
0 votes
1 answer
116 views

Issues retaining correct key input functionality of AHK script while trying to make it more effective

What's a good way to reorganize the longer script into a more efficient solution and retain the same functionality? I thought the above solution using a While loop will do, but the input of the keys ...
user avatar
  • 359

1 2
3
4 5
26