Autohotkey-多个脚本和不同的语言问题 [英] Autohotkey - multiple scripts and different language issues

查看:199
本文介绍了Autohotkey-多个脚本和不同的语言问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用autohotkey简化了复制过程,使用Alt + W代替了 Ctrl + C .但是,我经常将键盘切换为希伯来语布局,因此 w 键现在是'键.然后 w 的自动热键脚本不起作用.

I use autohotkey to simplify copying, using Alt+W instead of Ctrl+C. However, I often switch my keyboard to a Hebrew layout, so the w key is now the ' key. Then the autohotkey script for w doesn't work.

我试图将第二个脚本写入同一文件,但是当我处于希伯来语布局时,当我按 Alt + '时,该脚本没有被激活.我不确定这是我的语法还是其他想法,

I tried to write a second script into the same file but it doesn't get activated when I press Alt+' when I'm in the Hebrew layout. I'm not sure whether it's my syntax or something else, any ideas?

这是我的代码:

!w::
Send, {ctrl down}{a down}{a up}{c down}{c up}{ctrl up}
return

!'::
Send, {ctrl down}{a down}{a up}{c down}{c up}{ctrl up}
return

谢谢!

推荐答案

值得尝试使用键的虚拟/扫描代码代替名称,此示例使用虚拟代码(vkXX):

It is worth to try to use the virtual/scan codes of keys, instead names, This example uses the virtual code (vkXX):

;~ SetKeyDelay, keyDelay:=25, pressDuration:=25 ; details for SendEvent mode.

!vk57:: ; w/'/я... (en/he/ru...)
   Send, {CtrlDown}{vk41}{vk43}{CtrlUp}
   KeyWait, vk57
;~    Do something by release this key, if necessary...
   Return

这篇关于Autohotkey-多个脚本和不同的语言问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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