summaryrefslogtreecommitdiff
path: root/_windows/ahk/capslock.ahk
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-07-11 13:03:55 +0200
committerkkard2 <[email protected]>2025-07-11 13:03:55 +0200
commit03131863bc2ea969e562adc9b8f2952165613528 (patch)
tree8ec5187c723f18f2b21fb9104bdbb9cffc43f2ae /_windows/ahk/capslock.ahk
parent6d0ee0c948dcde01811d9d81150b82be33774a23 (diff)
visual studio (it flickers the first time for some reason)
Diffstat (limited to '_windows/ahk/capslock.ahk')
-rw-r--r--_windows/ahk/capslock.ahk8
1 files changed, 7 insertions, 1 deletions
diff --git a/_windows/ahk/capslock.ahk b/_windows/ahk/capslock.ahk
index e9e4ff0..56a8cdd 100644
--- a/_windows/ahk/capslock.ahk
+++ b/_windows/ahk/capslock.ahk
@@ -32,12 +32,18 @@ HarpoonRun(winTitle) {
WinActivate windows[HarpoonLastWindowIndex + 1]
}
+; visual studio being stupid
+HarpoonRunAndClick(winTitle) {
+ HarpoonRun(winTitle)
+ MouseClick("left", 100, 0)
+}
+
CapsLock::LCtrl
<^[::Esc
RAlt & `::HarpoonRun("ahk_exe WindowsTerminal.exe")
RAlt & 1::HarpoonRun("ahk_exe Discord.exe")
-RAlt & 2::HarpoonRun("ahk_group IDE")
+RAlt & 2::HarpoonRunAndClick("ahk_group IDE")
RAlt & 3::HarpoonRun("ahk_group Browser")
RAlt & 4::HarpoonRun("ahk_exe Element.exe")
RAlt & 5::HarpoonRun("ahk_exe code.exe")