如何使用AutoHotkey将alt+tab重新映射为w+n?

huangapple go评论43阅读模式
英文:

How do you remap alt+tab in autohotkey using w+n?

问题

我对在Windows上使用AutoHotKey重新分配键位还很陌生,我在重新分配AltTab键时遇到了问题。

特别是我在重新分配AltTab键时遇到了困难:

SetCapsLockState, AlwaysOff
#if GetKeyState("CapsLock", "P")
w & n::AltTab
#if

我的目标是,将CapsLock键用作修饰键,然后按住"w"键并同时按下"n"键来切换我的打开窗口。实际上,上面的代码片段可以工作。但是,它会禁用我的"w"键,也就是说,按下"w"键不再起作用。

是否有人有解决这个问题的想法?

提前感谢。

英文:

I'm quite new to working with Windows and I'm struggling with re-assigning keybinds using AutoHotKey.

Especially I struggle with re-assigning the AltTab key:

SetCapsLockState, AlwaysOff
#if GetKeyState("CapsLock", "P")
w & n::AltTab
#if

My goal is, to use CapsLock as a modifier key and then press "n" while holding "w" to tab through my open windows. In fact, the snippet above works. However, it kills my "w" key in the sense, that pressing "w" doesn't do anything anymore.

Does someone have an idea how to solve this issue?

Thanks in advance.

答案1

得分: 0

自定义组合键

> 前缀键失去了其本机功能。为了避免这种情况,请配置它执行新的操作。

SetCapsLockState, AlwaysOff

#if GetKeyState("CapsLock", "P")
	w & n::AltTab
#if

w::Send w
英文:

Custom Combinations says

> The prefix key loses its native function. To avoid this, configure it to perform a new action.

SetCapsLockState, AlwaysOff

#if GetKeyState("CapsLock", "P")
	w & n::AltTab
#if

w::Send w

huangapple
  • 本文由 发表于 2023年6月5日 19:41:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76406059.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定