重新映射键的热键不会触发热字符串 [英] Hotkey to remap keys does not trigger hotstring

查看:95
本文介绍了重新映射键的热键不会触发热字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个似乎无法一起使用的热键和热字符串:

I have a hotkey and hotstring that don't seem to work together:

9::(

:?ob0:(::){left 1}

为了提供上下文,我在代码的一部分中将所有符号重新映射到它们下面的数字,反之亦然,因此9打印了括号(.稍后,我放了一个热字符串,该字符串将在打开的括号后键入一个闭合的括号,然后将光标置于它们之间.

To give some context, in one part of the code I remapped all the symbols to the number below them and vice versa so 9 prints the parenthesis (. Later on I put a hotstring that would type a closed parenthesis after an open one and then places the cursor in between.

看起来很简单,因为它们都可以单独工作,但是当我按9键并按空格键时,它们可以一起工作,我只得到了打开的括号(,好像忽略了热字符串.

Seems simple enough because they both work individually but together when I press the key for 9 and press the Spacebar I only get the open parenthesis ( as if the hotstring was ignored.

我缺少明显的东西吗?

推荐答案

尝试结合使用 Send InputLevel .

Try using a combination of Send and InputLevel.

#InputLevel 1
9::SendEvent (
#InputLevel 0

;; Add closing parenthesis
:?ob0:(::){left 1}


说明

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆