Jas*_*vis 13 windows-7 automation autohotkey snipping
当我PRINTSCREEN用 AUTOHOTKEY按下键盘按钮时,我试图让 Windows 7 狙击工具运行。
到目前为止,我一直没有成功。这是我对 AutoHotKey 脚本的看法。
我试过这个
PRINTSCREEN::Run, c:\windows\system32\SnippingTool.exe
Run Code Online (Sandbox Code Playgroud)
和这个
PRINTSCREEN::Run, SnippingTool.exe
Run Code Online (Sandbox Code Playgroud)
和这个
PRINTSCREEN::Run, SnippingTool
Run Code Online (Sandbox Code Playgroud)
所有这些都给我一个错误,基本上说它找不到文件,但是文件路径似乎是正确的,我可以将其复制粘贴到一个窗口中并打开剪切工具,任何想法为什么它不起作用?
这是我的 AHK 文件的完整代码...
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win7
; Author: Jason Davis <friendproject@>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
/*
PRINTSCREEN = Will run Windows 7 snipping tool
*/
PRINTSCREEN::Run, c:\windows\system32\SnippingTool.exe
return
Run Code Online (Sandbox Code Playgroud)
Joh*_*n T 17
您是否正在运行 64 位版本的 Windows 7?
Windows 7(以及我相信的 Vista)实现了所谓的 WoW64 文件系统重定向。如果是这种情况,您需要将 AHK 指向 Sysnative 目录:
PrintScreen::Run, "C:\Windows\Sysnative\SnippingTool.exe"
小智 5
使用
PrintScreen::运行 C:\Windows\explorer.exe C:\Windows\system32\SnippingTool.exe
这将在 WoW64 文件系统重定向的范围内正确调用可执行文件
归档时间: |
|
查看次数: |
6263 次 |
最近记录: |