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
2
votes
0answers
23 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 ...
0
votes
3answers
198 views

How to map left shift to right shift?

My left shift fails to work on some keys (e.g. nzbkd8.;) sometimes, while right shift always works on all keys. Reinstalled all keyboard drivers (Uninstall -> Reboot), issue persists. Trying an AHK ...
0
votes
1answer
44 views

Crossfading video with alpha channel using FFMPEG

I wrote a small piece of code that crossfades a video clip - you define how long the video should be and how long the crossfade should be. It works great with videos with no alpha channel. The problem ...
0
votes
2answers
114 views

Windows 10 Power Throttling Terminates Background Script

To automate simple tasks on my laptop I use an AutoHotkey script compiled as .exe, which is started automatically when I log in and always runs in the background with administrative rights. I've been ...
0
votes
1answer
49 views

Can i enable Alt + Tab when a key is pressed

I need to have the ability to turn Alt + Tab on and off. Is there a way to do that via AHK. I know how to disable it but reverse that is not possible i think. I disable it user !Tab::Return
0
votes
0answers
148 views

Is there any way to add a custom shortcut in Windows?

I'm trying to implement a feature by which the user can directly copy a piece of text into a specific file. (mini-clipboard type) The first thing I researched about was of creating a universal ...
0
votes
0answers
22 views

Stop AHK from messing with dead keys

I use a spanish keyboard layout, so normally I press ´ (nothing appears on the screen), then a, to make na á. That's the normal behaviour, and one that I'm willing to keep. When I ran a AHK script, ...
1
vote
0answers
30 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 ...
0
votes
1answer
115 views

How to fix too sensitive key on a laptop? Workaround using Autohotkey?

Keyboard of my good old Dell Latitude D530 is very old and different keys start to be broken... the ] key close to Enter became super sensitive - it triggers even when I touch it only very very ...
0
votes
0answers
20 views

How to make AutoHotKey (or any other method) neutralize/remove the “Get Help” button in File Explorer on Windows 10? [duplicate]

I'm being driven to insanity by the "Get Help" button just underneath the "X" for "Close Window" in the right corner of every File Explorer window, designed to cause Bing search queries to be made ...
2
votes
1answer
321 views

Universal middle button scrolling with laptop with mouse pointer in keyboard

I have a new HP ZBook G6. It has two mouse button rows, the top one for the mouse pointer in the middle of the keyboard, the lower one for the trackpad. I have completely disabled the trackpad (and ...
0
votes
2answers
85 views

How to map a key to go to desktop?

Before you say anything, I know I can use win+d to go to desktop. I would like to be able to just use the windows key instead of win+d because I'm trying to replace the start menu and taskbar with ...
0
votes
1answer
83 views

Is there an AHk global functions file?

I have installed AHk on my Windows 10 OS and setted it to run on my PC right after boot. I want to use some "global" AHk functions file that doesn't require the loading of a certain .ahk file which I ...
0
votes
0answers
21 views

Why does *every other* AutoHotKey call for Pale Moon to open a URL result in the window not being focused? [duplicate]

This is driving me absolutely insane. It happens both in Pale Moon and Firefox. I have the following AutoHotKey shortcut: F1:: Run, "http://127.0.0.1/test.html" return If I press F1, my standard ...
0
votes
0answers
60 views

Why does literally every other call to Pale Moon/Firefox to open a URL result in the window not being focused on Windows 10?

This happens both in Pale Moon and Firefox. I have the following AutoHotKey shortcut: F1:: Run, "http://127.0.0.1/test.html" return If I press F1, my standard browser (Pale Moon) opens to that given ...
0
votes
0answers
24 views

Is there some way to get AutoHotKey bindings on the host OS (Windows 10) to apply even when immersed in a VM?

I have a PC running Windows 10. It runs AutoHotKey. I have a script starting on startup which sets all kinds of shortcut key bindings. These work. ... as long as I'm not inside a VM. Whenever I open "...
1
vote
2answers
77 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 ...
1
vote
0answers
62 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" ...
0
votes
1answer
67 views

Why is AutoHotKey somehow causing a nightmare of error messages which attack me until I reboot the machine?

I have this in my test.ahk: #§:: SetTitleMatchMode, 1 WinActivate,Testwindow goes here return It's supposed to let me press WinKey + § (the key to the left of the "1" on my keyboard) to instantly ...
1
vote
0answers
25 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 ...
0
votes
1answer
97 views

Autohotkey capslock remapping and use as a modifier

Setting up the following script: #persistent SetCapsLockState, AlwaysOff CapsLock::Esc Capslock & j::Send {Blind}{Down DownTemp} Capslock & j up::Send {Blind}{Down Up} I am having a problem,...
0
votes
0answers
45 views

Is there a way to mute my mic with any keyboard input?

I have an extremely loud keyboard, it's like a cacophony of jack hammers wrestling, and dwarfs my voice. I'd like to mute myself if I start typing at all so no one has to suffer it. Is there a way ...
1
vote
1answer
145 views

WM_NCHITTEST and Detecting the Title bar of a Window

I am relatively new to the world of programming. I've been using AutoHotkey a lot and came accross a code using WM_NCHITTEST. The code below: When the mouse cursor is above a window Title Bar, Right ...
2
votes
1answer
162 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 ...
0
votes
2answers
57 views

Windows10 change keyboard layout of specific device

lets say I have my keyboard with its numpad (104 keys), and I want to use another numpad (USB or BT, doesn't matter) for custom functionalities (shortcuts, macros...). I can program to change the ...
0
votes
0answers
13 views

AutoHotKey: make Win+Tab act as Alt+Tab, but remap all other Win+ combinations as Ctrl+

I am trying to make my MacBook in Windows behave similar to macOS: so I can switch between apps using Win+Tab (i.e., replicate the Alt+Tab action), but have all the Ctrl+... actions (like, Ctrl+C, ...
1
vote
1answer
141 views

Auto-typing passwords etc. into a Hyper-V guest is not working. What can I do?

I am running several virtual machines (Windows and Linux) on a Hyper-V server. I want to use Keepass to enter passwords stored on my local machine through the Hyper-V connection into the remote ...
0
votes
0answers
52 views

How to combine three keys (navigate virtual desktop) as a hotkey with AutoHotkey?

To navigate between virtual desktops, the default shortcut key is: Ctrl+⊞ (Win)+← (left arrow). Now what I want is to auto navigate virtual desktop after a certain time, like every 10 minutes. How ...
0
votes
0answers
70 views

How do I get AHK to work in VMware Workstation?

How do I get VMware to use an AutoHotkey script? I'm playing MapleStory but not sure how to make it work. Also, can you specify if I need to have the AHK script in the VM or on my host/main OS? I'm ...
0
votes
0answers
22 views

How can I convert a MouseClick snippet to a ControlClick snippet in an AutoHotKey script?

Here's a simple MouseClick example: CoordMode, Mouse, Screen MouseClick, left, 100, 250 Not to move the cursor, how the code should be changed to be matched with ControlClick syntax?
0
votes
0answers
217 views

AHK script that loops until RMB is released

I'm looking to create a script that when the right mouse button is pressed and held it: Also presses and holds the right mouse button (aiming) Cycles between pressing "q" for .5 seconds(lean left), ...
2
votes
1answer
91 views

How to combine two keys as a hotkey with Autohotkey?

I want to combine Left windows key with printscreen, for on my mouse xbutton2. i can't get any further than Xbutton2::Lwin Many thanks !
1
vote
1answer
52 views

any way to make script work while ctrl key is pressed down

#SingleInstance ignore ~LButton:: Time := A_TickCount KeyWait, LButton If ((A_TickCount-Time) < 300) Click Return i am trying to make autohotkey when enabled [via eventghost] ...
1
vote
0answers
39 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 ...
0
votes
1answer
82 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 ...
0
votes
0answers
26 views

AHK Copy & Paste mouse location

I've made the simple script to display the hex color of my current mouse position is there anyway I'd be able to make it so that it copy & pastes the hex code if I press a certain key?
0
votes
1answer
42 views

Any way to see what processes are filtering or reassigning events? And/or can OS do this itself?

I've downloaded the respected utility X-Mouse Button Control, which can translate button events into other events. Autohotkey is another such application. I believe my work PC has some utility, ...
1
vote
2answers
1k views

How can I toggle Bluetooth on and off via a shortcut on Windows 10 1903

I would like to emulated with a shortcut the process of 1) opening the Action Center and 2) clicking on the bluetooth icon. My solution was to use AHK to map a keyboard shortcut to running a .bat, ...
1
vote
1answer
40 views

AutoHotKey: remapping Alt+Shift+<plus> to \

I would like to have a autohotkey remap for Alt + Shift + nonnumpad_plus_sign (equivalent to Alt + ? in my keyboard) and have that send a backslash '\' I've tried stuff like: !+NumpadAdd::\ (which ...
0
votes
1answer
130 views

Autohotkey - toggle keys

I want to achieve this press "a" > output "a" press "a" again > output "b" press "a" again > output "a" press "a" again > output "b" keep repeating these... Below script does what I want, but with ...
0
votes
1answer
166 views

AutoHotKey: How to add special character bullet points with a string of letters?

I am trying to add special characters (different types of Dots as seen on the last row. This works but I would like to use a string of letters #+d::Send {U+25CF} ; dot solid I tried using this - ...
0
votes
3answers
262 views

Disable/pause AHK script while game is minimized

I have an AHK script that allows me to bind joystick presses to keystrokes. These keystrokes are used to trigger functions in a trainer that runs in the background while I play a game. The script ...
2
votes
1answer
29 views

How can I jump 2 words at a time throughout Windows?

Ever since I learned about using Ctrl with the arrow keys, backspace key, and delete key, I've felt my typing and editing productivity go up significantly. I'd like to know if there's an easy way to ...
0
votes
0answers
40 views

How to make remap Alt to Win button when there are Xbox Game key-bindings

I would like to bind my LAlt to LWin button. I have the AutoHotKey script: LWin::LAlt It works great except for a few key sentences: Win-r, Win-g, Win-b. They have their roots in Xbox Game ...
0
votes
2answers
44 views

Windows is delaying release of a key, and sometime the key get stuck forever

I am experiencing this issue from quite sometime. Keys get stuck (not physically) until I press them again. Sometime for 1-2 seconds, sometime forever. Here is one the example I have A2 01D d ...
0
votes
1answer
241 views

How can I create an .ahk (or similar) hotkey to perform program-specific actions?

I'm an AHK user with no real computer programming background or education (I suppose Excel would be the closest thing I have to such knowledge/experience, excluding day-1 hello, world exposure here ...
1
vote
1answer
26 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 ...
0
votes
1answer
131 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 ...
1
vote
0answers
55 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 ...
1
vote
1answer
39 views

autohotkey - customize keyboard [duplicate]

I use a laptop with Italian keyboard, but I need the tilde ~ and the backtick ` characters, which my keyboard is not endowed with. I got to know AutoHotKeys and it seems to fit. But I could not find ...

1
2
3 4 5
24