How can I remap CTRL-x CTRL-c in Autohotkey?
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Here is an example that waits 0.6 seconds for C to be pressed after Control + X: $^x::
keywait, c, d, t0.6
If ErrorLevel
Sendinput, ^x
Else
WinClose, A
Return
|
In Sublime Text 2 for OS X, how do I remap the keyboard shortcut ctrl-shift-k (delete line) to ctrl-k
Date : March 29 2020, 07:55 AM
may help you . In your user key binding file, create the following entry (accessible via Preferences -> Key Bindings - User). This creates a file by the name of Default (OSX).sublime-keymap in your User folder. [
{ "keys": ["ctrl+k"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }
]
|
Autohotkey: remap ctrl + {
Date : March 29 2020, 07:55 AM
this one helps. You can use the steps listed here to find the scan code and virtual key code of the { and then use either of those (SCnnn or VKnn) in the hotkey definition. Even though that works I was curious why the ^{ doesn't work for your layout, so I tried using it and seeing if AHK's key history showed {, which it does. I took a look at AHK's source code to see what's happening, and I think it comes down to the return value of VkKeyScanEx called with { and your layout, which is 0x0634, i.e., AltGr+4. I hadn't noticed that AltGr+4, AltGr+5, and AltGr+9 all produce { in your layout before this, so I tried the ^{ hotkey again and sure enough it fires with AltGr+4. So it seems it's just a limitation of VkKeyScanEx: even if multiple combinations map to some character only one of them can be returned. In your .klc file, wherever LEFT CURLY BRACKET first appears will be the combination that VkKeyScanEx returns. I don't know if you use the AltGr combinations for {, but if you remove them from your layout the ^{ hotkey should work for just Ctrl+{.
|
AutoHotKey: Remap Alt, Ctrl, and Alt+Ctrl
Date : March 29 2020, 07:55 AM
Hope that helps The problem with your solution is that RAlt & RCtrl::SendInput {Volume_Mute} turns RAlt into a "prefix key" and according to the Hotkeys section of Autohotkey help "The prefix key loses its native function". Try this instead: RAlt::Volume_Down
RCtrl::Volume_Up
#if GetKeyState("RAlt", "P")
RCtrl::Volume_Mute
#if GetKeyState("RCtrl", "P")
RAlt::Volume_Mute
|
Remap capslock-key to modifier key ctrl+shift+alt with Autohotkey
Date : March 29 2020, 07:55 AM
|