AHK显示隐藏任何应用程序

#SingleInstance force
#Persistent
Run C:\Program Files (x86)\AppFlowy\AppFlowy.exe 
WinWait ahk_exe AppFlowy.exe          
Return

F12::            
If (IsWindowVisible("AppFlowy.exe") ) 
    WinHide ahk_exe AppFlowy.exe         
Else    
    WinShow ahk_exe AppFlowy.exe
Return

IsWindowVisible(pProcessName){
DetectHiddenWindows, On
static WS_VISIBLE := 0x10000000
WinGet, Style, Style, % "ahk_exe " pProcessName
return (Style & WS_VISIBLE)
}

 

posted @ 2024-12-27 12:15  meetrice  阅读(55)  评论(0)    收藏  举报