Windows 10中的AutoHotkey-热键在某些应用程序中不起作用 [英] AutoHotkey in Windows 10 - Hotkeys not working in some applications

查看:471
本文介绍了Windows 10中的AutoHotkey-热键在某些应用程序中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个简单的脚本,如

a::msgbox hi!

以前在Windows 7下可以正常工作.现在,我已升级到Windows 10,但在某些窗口处于活动状态时,它不起作用.特别是 LButton -热键会弄乱所有内容,导致您实际上需要任务管理器的情况.

used to work fine under Windows 7. Now that I upgraded to Windows 10, it isn't working when certain windows are active. Specially LButton-Hotkeys can mess up everything, leading to the situation where you actually need Task Manager.

以下是一小部分不再能识别热键的应用程序列表:(相反,从上面的脚本开始,发送了一个简单的 a )

Here is a small list of applications in which hotkeys are not recognized anymore: (instead, as of the above script, a simple a is sent)

  • 团队口语3
  • 一切
  • 包装

有效的地方:(示例)

  • 编辑器
  • Skype
  • 一般Windows应用
  • Ahk帮助
  • 打开办公室
  • (大多数程序)

有人可以复制吗?

Win10中的AutoHotkey有什么问题?

What's wrong with AutoHotkey in Win10?

如何解决?

(AHKscript版本1.1.22.3 Unicode 64位)

(AHKscript vers. 1.1.22.3 Unicode 64-bit)

推荐答案

由于Windows 10刚刚发布,所以这是一个非常相关的问题,我相信很多用户都会感谢帮助他们在此脚本上正常运行的帮助.新的操作系统.可能有人认为这个问题的范围很广或分类不正确,因为这是Windows问题,而不是特定的AutoHotkey问题?

Being that Windows 10 was just released, this is very relevant question and I'm sure that many users will appreciate help in getting their scripts to run properly on this new OS. It's possible someone thought that this question was to broad in scope or maybe improperly classified, as it's a Windows issue rather than a specific AutoHotkey problem?

据我了解,问题在于新的UAC设置.一个简单的解决方案是以管理员身份运行脚本.为此,请右键单击文件->选择以管理员身份运行"

From my understanding the issue lies in new UAC settings. A simple solution is to run your script as an Administrator. To do this right click on the file -> select "Run as Administrator"

对于始终以管理员身份运行应用程序或文件(在Windows 10中),我没有直接的答案,但是我发现该指南似乎涵盖了Windows 10中的所有可能方法.

I don't have a direct answer to give regarding running an application or file always as an Admin (in Windows 10), but this guide I found seems to cover every way possible to do so in Windows 10.

http://www.tenforums.com/tutorials/3436-run-administrator-windows-10-a.html

另一种替代方法是让脚本检查脚本是否以Admin身份运行,如果没有以Admin身份重新加载.代码已从帮助文件中拉出:

Another alternative is to have the script check if it is running as Admin, if not reload as Admin. Code was pulled from the Help File:

if not A_IsAdmin
{
   Run *RunAs "%A_ScriptFullPath%"  ; Requires v1.0.92.01+
   ExitApp
}

这篇关于Windows 10中的AutoHotkey-热键在某些应用程序中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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