Use the Window Spy tool, which is installed together with AHK, it can be started various ways:
- Right click the tray icon of a running AHK script and select
Window Spy
- Start the
AU3_Spy.exe
in the AHK installation folder
- Use the Windows search to search for
Window Spy
You will get a window called Active Window Info
with various infos about your current active (topmost) window. The first box is the one you need.
Example
The box gives title, class and .exe to detect the target window of which every line can be used to identify the window. Now you should activate the window you want to address and copy the information.
Hint: You can (un-)freeze the display with Win + A
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…