gpt4 book ai didi

windows - 在 Windows 8 中创建新文件的 AutoHotKey 快捷方式

转载 作者:可可西里 更新时间:2023-11-01 10:06:07 24 4
gpt4 key购买 nike

前段时间,我在网上找到了一个脚本,它提供了创建新文件的快捷方式。它非常适合我运行 Windows 7 的计算机:

#IfWinActive, ahk_class CabinetWClass
#n:: ;If Windows+N is pressed in Windows Explorer
Send {Alt} ;Menu
Send f ;> File
Send w ;> New
Send t ;select Text Document
Send ^a ;select all
Exit

此脚本不适用于我运行 Windows 8 的新笔记本电脑。只是想知道是否有人知道这是为什么,是否可以进行快速编辑以使其正常工作?感谢您的帮助!

最佳答案

认为我实际上想出了在所有情况下都有效的东西,Windows 7 和 8:

#n::
Send {AppsKey}
Send w
Send t
Sleep, 400
Send ^+{Right}
Send {Del}
return

我必须在其中添加 Sleep,因为它似乎试图在文件有时间创建之前运行后续代码。但这似乎完成了我需要的。

关于windows - 在 Windows 8 中创建新文件的 AutoHotKey 快捷方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23380944/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com