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

Calling GetKeyboardLayout before making a request to change keyboard layout doesn't work

I'm trying to conditionally set a keyboard layout on all opened windows in the following way: Calling getKeyboardLayout, and determining what's the current language (English or Russian). Calling ...
1
vote
1answer
29 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
23 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
27 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
152 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
44 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
39 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
54 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-...
0
votes
1answer
96 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
29 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
35 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 ...
1
vote
1answer
87 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
24 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
1answer
28 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
27 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
68 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
93 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 ...
-1
votes
0answers
47 views

How to enable a hotkey in Windows 10 to launch the LastPass Desktop app (like on macOS)?

I use the LastPass password manager on both Mac and Windows. The Mac version has a default keyboard shortcut/hotkey to open the app and enable you to search for the password you need (COMMAND-SHIFT-L ...
0
votes
1answer
78 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
564 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
31 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
54 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 ...
0
votes
0answers
39 views

Can I add document navigation shortcuts to Windows 10?

I have just started using Windows again after many years and previously was able to use FN + left/right arrows on a Dell laptop using various versions of Ubuntu to go to the beginning and end of line ...
1
vote
1answer
68 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
27 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
75 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
160 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
64 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
101 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
56 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....
0
votes
1answer
128 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
69 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 ...
1
vote
1answer
31 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
44 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
108 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
0answers
30 views

Ctrl+Backspace typing a rectangle instead of deleting word to left

I'm using the following script to fix my issue: #IfWinActive ahk_class CabinetWClass ; File Explorer ^Backspace:: #IfWinActive ahk_class Notepad ^Backspace:: Send ^+{Left}{Backspace} #IfWinActive ...
0
votes
1answer
56 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
22 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
148 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
36 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
111 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
147 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
21 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
26 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
113 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
19 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
222 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
84 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
72 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
2 3 4 5
23