问题
Whenever I try to launch the Windows Spy utility in AutoHotkey, it fails with an error "Could not launch file: U:\Software\AutoHotkey_1.1.26.00\AU3_Spy.exe"
Initially I thought that I may have had a corrupted download. However, after redownloading AHK from the official website, I could not find any file named AU3_Spy.exe
in ahk.zip.
After some research, I've discovered that the portable version of AHK is missing AU3_Spy.exe, which seems to be required for Window Spy to run.
- What is AU3_Spy.exe?
- Why wasn't it included with AutoHotkey?
- Where can I find the missing file?
回答1:
Window Spy or AU3_Spy.exe
is a program which can be used to retrieve information about a window for scripting.
While it isn't included with the portable version of AHK ahk.zip
, you can use 7-Zip to extract AU3_Spy.exe
from the AutoHotkey installer.
Download the AutoHotkey installer (https://www.autohotkey.com/download/)
Open installer file using 7-Zip and extract
AU3_Spy.exe
.Place
AU3_Spy.exe
in your AutoHotkey folder.While running AHK, right-click the AHK icon in the notification area and select Window Spy.
Done! You can now click any window to retrieve useful information such as window title, mouse position, and controls.
回答2:
In latest AutoHotkey installer (v1.1, v2.0...), only Full-installer includes that, and after installation you can find it:
C:\Program Files\AutoHotkey\WindowSpy.exe
回答3:
Try running the standalone installer:
https://autohotkey.com/download/ahk-install.exe
Then look for your file here:
\Program Files (x86)\AutoHotkey\AU3_Spy.exe
来源:https://stackoverflow.com/questions/45552452/what-is-au3-spy-exe-where-can-i-find-it