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
1answer
35 views

I am trying to trigger Alt tab Widget with SPACE + A

I am trying to trigger Alt tab Widget with SPACE + A but while holding down SPACE key, A and D need to act as directional keys. and lastly exit the Widget when SPACE is released. The problem I am ...
1
vote
1answer
39 views

What does a capital A (without an underscore) do in AutoHotKey?

What does a capital A (without an underscore) do in AutoHotKey? For example, the following script (taken from here) changes the current language to Russian, and it uses a capital A: ru := DllCall("...
-1
votes
1answer
61 views

Shortcut to Close window under mouse cursor

This would be even more useful than a keyboard shortcut. because you can close windows without activating them. Very natural.
0
votes
1answer
71 views

Capturing special key [Browser_home] to avoid standard behaviour / Win10

Good morning, or afternoon I try to capture a key from a external keyboard that drive me crazy, everytime I "touch" (really sensitive) it opens me a blanc browser window, I think on the last session ...
0
votes
1answer
523 views

Passing the output of GetKeyboardLayout into LoadKeyboardLayout doesn't work

Question Why passing the output of GetKeyboardLayout (after formatting it to hex) into LoadKeyboardLayout doesn't work? The docs for GetKeyboardLayout say (bolded by me): GetKeyboardLayout ...
1
vote
0answers
58 views

Why do Auto Hot Key scripts stop working at some places in my PC?

I looked up on the net for AHK scripts to get ripple effect around my mouse pointer when I clicked. But it stops working sometimes, like it doesn't work on overlay windows or in the start. Though not ...
0
votes
1answer
56 views

Remapping alt+shift, and waiting for an additional keypress

I'm trying to use AutoHotKey to remap left alt+left shift according to the following conditions: If left alt+ left shift are pressed, wait for both to be released. Then, once both released: If the ...
0
votes
1answer
397 views

Keyboard shortcut and right-click-menu item to ZIP all selected files/folders (with or without password)

I'd like to be able to ZIP all selected files/folders in one keyboard shortcut. How to enable this feature in Windows 7? Currently these are the options: Right-click > 7-Zip > Add to temp.zip Right-...
1
vote
1answer
115 views

Toggle Windows Explorer ascending/descending by hotkey?

This thread explains how you can bind a hotkey to various sort by options. but I am specifically looking for a way to toggle just the ascending/descending order without changing the ordering method ...
0
votes
1answer
39 views

Selecting text by whole words using mouse click

Is there a way, using AHK or otherwise, to select "only words" and not individual letters, like in Adobe Acrobat Reader? It should be such that even if the mouse pointer begins to select text at the ...
1
vote
1answer
64 views

Adding Ctrl key to autohotkey combination

I have this simple hot key to mute the volume ScrollLock::Send {Volume_Mute} It works but I want to add the Ctrl key so that I have to press Ctrl + ScrollLock to activate {Volume_Mute}. How do you ...
2
votes
1answer
288 views

Bluetooth toggle in Windows through AHK?

I have spent the past two hours trying to turn off Bluetooth by a hotkey or through CMD. This link shares two commands you can use to toggle Bluetooth: net stop bthserv net start bthserv You get ...
1
vote
0answers
37 views

Run issue with Lexikos AHKControl script?

I've been looking for this script, AHKControl by lexikos all over the place. The original release thread is on the old defunct forum, that may be why I cant see any download links there. I found a ...
1
vote
2answers
61 views

Get Date and Time panel pop up where cursor is?

This window can be dragged around just like any other window.For example, by using winmove. Before that I first have to find the window in question which is where I am stuck. AHK Spy gives me this ...
0
votes
1answer
34 views

Key inputs using KeyWait are sent out of order

I am trying to implement Autoshift with AHK Script waits for key release and when certain time elapses the Hotkey sends a shifted character. The problem is that when I type keys very fast inputs are ...
1
vote
1answer
95 views

KeyWait misbehaving when implementing Autoshift

I want to have Autoshift with AHK, I used this scritp: https://superuser.com/a/1396278/47625 ; create an array/object of the keys you want shift: Keys := ["a","b","c","d","e","f","g","h","i","j","k","...
0
votes
1answer
116 views

Need some guidance about AHK Text Loop Script

I'm a gamer and mainly play Roblox, I need to set up a script that will open the chatbox by pressing the slash key and then it will say explode all and then the enter key. I've already managed to come ...
0
votes
1answer
803 views

Need assistance with making a AHK Text spam script

I hope your all doing well! I'm a gamer with little to no knowledge about scripting, in a game I'm trying to make an auto hotkey script that will press the slash key first and then copy-paste the ...
5
votes
1answer
659 views

How can I start the current version of autohotkey?

How can I start the current version of autohotkey? I have used autohotkey on and off for maybe a decade or more.. and they've changed it such that I am now unsure how to start it. I am on Windows 10....
0
votes
0answers
72 views

Is it possible to have an extra key modifier?

Most windows applications only accept a combination of a key with one regular modifier (Alt, Ctrl, Super and Shift keys). e.g. you cannot define a shortcut as "CapsLock+A". I need the have an extra ...
0
votes
1answer
87 views

Auto hot key AHK script for this logic to save wallpapers from website

I am sure auto hot key handles this but not sure how to do it. Here is the scenario. I have 10 tabs open on Google chrome. In each chrome tab, there is a wallpaper photo that I need to save. This is ...
1
vote
1answer
2k views

AHK (AutoHotKey) Concatenate strings and variable

I have this code for sending command to Autocad. It works OK. { GetAcad() ;Creates global variable ACAD where Application Object is stored CADdoc:= ACAD.activedocument Layer:= "0" CADdoc.SendCommand("...
0
votes
1answer
69 views

Autohotkey hold and release

I am trying to make a script that when you hold the side mouse button it will keep pressing U, and when I let go of the side button it will stop pressing. Here is what I have RepeatKey := !RepeatKey ...
1
vote
1answer
126 views

I don't know how to make the F8 key toggle the script off as well on AHK

F8:: Loop { Send {W down} Sleep 500 Send {W up} Sleep 1000 } Return
0
votes
2answers
181 views

Bind Apostrophe to be “Control” when used in conjunction with other keys?

Is there a way to use AHK to bind ' to be Control, but only used in conjunction with other keys besides shift (so that when ' or Shift + ' is pressed on its own, it still sends ' and ", respectively)? ...
0
votes
1answer
76 views

Windows keyboard shortcut for missing fn buttons?

My f6 and f12 buttons are missing, and I would like to create shortcuts for them (e.g ctrl+6 etc.) Is this possible? I tried looking into AutoHotKey, but couldn't find how to define the output as an ...
1
vote
1answer
365 views

AHK need help to make a AHK gui button to run 3 different scripts

New to programming and AHK need help to build AHK GUI with at least three buttons to run 3 different scripts, and to show color in the button could be green to show that the script is running and if I ...
0
votes
1answer
64 views

Send # as keystroke with auto hotkey

We are working on a AHK program where we need to send # as a keystroke. We already tried Send, # but doesnt work. Couldnt find the right keystroke in the list: https://www.autohotkey.com/docs/KeyList....
1
vote
1answer
236 views

Programmatically close all tabs in Firefox Quantum

1. Summary I can't find, how I can close all tabs in Firefox Quantum without any manual mouse clicks. 2. Details (Details for preventing XY Problem) I am working on several projects. I need always ...
0
votes
1answer
507 views

How to run an AHK script on Windows startup when the script is associated with a text editor

I have an AutoHotkey script and it should be started each time on Windows startup. For this purpose, it is located in %AppData%\Microsoft\Windows\Start Menu\Programs\Startup. The problem is that my ...
2
votes
1answer
45 views

Outlook and AutoHotkey, how to output Unicode symbols without switching the font?

I have a keyboard binding to output an Unicode RIGHTWARDS ARROW (code 2192) when typing ->: ::->::{U+2192} It works great everywhere (Notepad(++), vscode, ...) except in Outlook (new mail ...
0
votes
1answer
133 views

AutoHotKey can't grab right windows key (Fn) on Win10

I'm trying to make a script that mutes\unmutes all sound and increases\decreases volume by pressing right windows key (called Fn on my keyboard) AND F9-F11 keys respectively. I'm using Windows 10. The ...
0
votes
1answer
1k views

How to map CTRL + ALT + TAB to a macro activated from a customizable special key on the Microsoft Natural Ergonomic Keyboard 4000?

I am trying to create a, what I call, 'Task Switcher' macro, ideally using the useless for me 'Media Play/Pause' button on my 'Microsoft Natural Ergonomic 4000' keyboard. I have no need for the ...
0
votes
1answer
69 views

How to map to a mapping key?

I remapped q to LShift, and now I can't map any other key to q except RShift + q (via another mapping), which gives Q - so each time I must copy/paste q from elsewhere. When I try mapping to q, it ...
2
votes
0answers
27 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
863 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
165 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
142 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
53 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
149 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
28 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
83 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
198 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 ...
2
votes
1answer
2k 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
89 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
216 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 ...
1
vote
2answers
114 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 ...
2
votes
0answers
471 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
104 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
29 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 ...

1 2
3
4 5
25