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 @   meetrice  阅读(11)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
历史上的今天:
2021-12-27 宝塔面板常用命令大全!
2020-12-27 macos 安装 esp idf
2020-12-27 在Mac上默认使用Python 3的正确方法
2020-12-27 macOS Big Sur安装TensorFlow踩坑记
点击右上角即可分享
微信分享提示