Bluetooth 如果变量为真,则自动热键更改键
我是AutoHotKey新手,正在尝试创建一个脚本,让我在电脑上使用Roku的蓝牙遥控器。遥控器的问题是所有的按键都很奇怪。我想要的是,当我同时按下x和y时,所有必要的键都会重新映射到遥控器的键,反之亦然,键盘的键也会如此。以下是我现在拥有的(不起作用): 有人知道为什么这样不行吗Bluetooth 如果变量为真,则自动热键更改键,bluetooth,autohotkey,key-bindings,remap,Bluetooth,Autohotkey,Key Bindings,Remap,我是AutoHotKey新手,正在尝试创建一个脚本,让我在电脑上使用Roku的蓝牙遥控器。遥控器的问题是所有的按键都很奇怪。我想要的是,当我同时按下x和y时,所有必要的键都会重新映射到遥控器的键,反之亦然,键盘的键也会如此。以下是我现在拥有的(不起作用): 有人知道为什么这样不行吗 ~x & y::(HotkeysState:=!HotkeysState) #If HotkeysState 4::SendInput h u::SendInput {up}
~x & y::(HotkeysState:=!HotkeysState)
#If HotkeysState
4::SendInput h
u::SendInput {up}
l::SendInput {left}
r::SendInput {right}
d::SendInput {down}
e::SendInput {esc}
6::SendInput {backspace}
c::SendInput r
8::SendInput f
s::SendInput {enter}
3::SendInput c
a::SendInput {space}
#If
~x & y::(HotkeysState:=!HotkeysState)
#If HotkeysState
4::SendInput h
u::SendInput {up}
l::SendInput {left}
r::SendInput {right}
d::SendInput {down}
e::SendInput {esc}
6::SendInput {backspace}
c::SendInput r
8::SendInput f
s::SendInput {enter}
3::SendInput c
a::SendInput {space}
#If