使用Autohotkey关闭Everything.exe

时间:2018-02-22 22:07:00

标签: autohotkey

我无法使用autohotkey关闭Everything.exe。 我甚至无法使用此获取窗口ID;

if WinExist("ahk_class Notepad") or WinExist("ahk_class" . ClassName)
WinActivate  ; Uses the last found window.

MsgBox % "The active window's ID is " . WinExist("A")
Return

它应该返回类似于PC上的所有其他应用程序所做的!

The Active Windows ID is 0x013017e 

我已经尝试了

StartClose("Everything.exe")

StartClose(exe)
    {
    Process, Exist, %exe% ; check to see if program is running
    If (ErrorLevel = 0) ; If program is not running -> Run
    {
    Run, %exe%
     }
 Else ; If program is running, ErrorLevel = process id for the target program -> 
 Close
    {
     Process, Close, %ErrorLevel%
     }
 }
 return

和这个

处理,关闭,Everything.exe

处理,关闭,ahk_class一切

进程,关闭,ahk_exe Everything.exe

帮助!

1 个答案:

答案 0 :(得分:-1)

[object Object][object Object][object Object]