All Questions
Tagged with autohotkey hotkeys
73
questions
1
vote
1
answer
119
views
This single, double and hold AHK script is not working
I found this script from https://autohotkey.com/boards/viewtopic.php?f=5&t=51596 it works perfectly. I like that it is easy to understand and change your desired key easily.
The thing is:
It ...
-1
votes
1
answer
246
views
How do I change my Tilde key to produce the n-dash when pressed? [duplicate]
How can I change a key on my keyboard so that it produces a different character than what it was designed to produce? I find the Tilde key (the little key with ∼ above the Tab key) useless and I would ...
0
votes
1
answer
157
views
Focus a window under the mouse and send a hotkey
When pressing "Ctrl + WheelUp/Down" with the pointer under Chrome I would like to focus the Chrome window once and then send the ^+tab hotkey as shown in my code:
Ctrl & WheelUp::
...
1
vote
1
answer
119
views
Can't set a RCtrl HotKey Combination with Autohotkey?
I'm trying to map Ctrl + G to send RCtrl + LAlt hotkey, but it doesn't work.
This is my code:
^g::
Send, {RCtrlDown}{Alt}{RCtrlUp}
return
I've also tried:
Send, {RCtrlDown}{LAlt}{RCtrlUp}
Send, {...
0
votes
0
answers
747
views
PC, Multi-Monitor, AutoHotKey, Creating a Toggle hotkey that can switch from PC Screen to Extend
Would someone be able to write me a auto hotkey script so I can use Win+alt+a to toggle the project screen function from PC Screen Only to Extend. I have seen the auto hotkey scripts for an individual ...
1
vote
1
answer
2k
views
How do I assign "Switch to Virtual Desktop 1 (2/3/4)" to F1 (F2/F3/F4) in Windows 11?
My fastest way of working is not to have 4 monitors (swiveling or rotating the head takes at least half a second) but to have fixed Virtual Desktops for specific tasks. So I know "Webbrowser: 3rd ...
2
votes
1
answer
1k
views
Do I have to put `SetTitleMatchMode` on top of the script?
Sample script:
#NoEnv
#Warn
#SingleInstance Force
#IfWinActive Foo ahk_exe foo.exe
!A::Send Foo
SetTitleMatchMode Regex
#IfWinActive Bar$ ahk_exe bar.exe
!A::Send Bar
When running it, it ...
0
votes
1
answer
619
views
How to resolve a hotkey conflict?
I bound Alt+Space to an action, for example:
!Space::Send, Foo
Now how to trigger the original Alt+Space's action (as shown in the image below) through code?
0
votes
1
answer
949
views
How to write an AHK script that uses a shortcut to close PowerShell?
I've known that Alt+Space C could close PowerShell, but Alt+Space is already in use for me, I want to bind Alt+F4 to Alt+Space C, how to achieve that in AHK?
0
votes
1
answer
142
views
How to bind an action if no dialog is open?
In VLC media player, I want to bind k to Space (Pause/Play) if no dialog (e.g. the preferences dialog) is open, how to achieve that?
0
votes
1
answer
64
views
How to get the hotkey definition if a shortcut is pressed?
For example, if I press Ctrl+Shift+Alt+C in this order, how I do get the corresponding hotkey definition?
I expect something like the following:
; pseudo code
*::MsgBox %A_ThisHotkey% was pressed
2
votes
3
answers
547
views
Autohotkey: closing vlc media player
I want to setup a hotkey for closing vlc or windows media player using autohotkey. I came across this page in the guide- https://www.autohotkey.com/docs/commands/WinClose.htm
But it doesn't seem to ...
1
vote
1
answer
1k
views
Blocking specific keys while a function is running with AutoHotkey
So I made this script with AHK and it works but what I want it to also do, is to make it so while the function is running, it wouldn't be able to be triggered again. So I want to either deactivate the ...
3
votes
3
answers
1k
views
How to assign multiple hotkeys to the same action?
Here're my current hotkeys:
Action
Hotkey
Short backward jump(10s)
J
Play / Pause
K
Short forward jump(10s)
L
Given this config, I'm losing Space for pausing/playing, so the question is, how to ...
1
vote
0
answers
2k
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 ...