Post by tmplinshi » 11 Apr 2015, 06:11
通过脚本的 PID 来获取。
Code: Select all
Gui, Add, Text, w500 h500,
Gui, Show,, aaa
; DetectHiddenWindows, On ; 检测隐藏窗口
WinGetTitle, scriptTitle, % "ahk_pid " DllCall("GetCurrentProcessId")
MsgBox, % scriptTitle
ExitApp
通过脚本的 PID 来获取。
[code=AutoHotkey]Gui, Add, Text, w500 h500,
Gui, Show,, aaa
; DetectHiddenWindows, On ; 检测隐藏窗口
WinGetTitle, scriptTitle, % "ahk_pid " DllCall("GetCurrentProcessId")
MsgBox, % scriptTitle
ExitApp[/code]