简体   繁体   English

有什么方法可以检测外部进程是否在独占全屏模式下运行?

[英]Is there any way to detect if an external process is running on exclusive fullscreen mode?

spent the whole day looking up for a solution, but I couldn't find it 一整天都在寻找解决方案,但我找不到

I'm not talking about borderless windowed fullscreen, but those exclusive fullscreen mode that usually games use 我不是在说无边界窗口全屏,而是那些通常游戏使用的独家全屏模式

is this possible? 这可能吗?

I think you can get list of the process independently from your mode using System.Diagnostics.Process . 我认为您可以使用System.Diagnostics.Process从您的模式中独立获取进程列表。 Than you can just find any process by name or other properties. 比起您只能按名称或其他属性查找任何进程。

UPDATED 更新

So I have tried some solutions, but for now found one that works if process if full-screen right now, not minimized. 因此,我尝试了一些解决方案,但目前发现,如果现在全屏处理(而不是最小化),则该解决方案可以工作。 Pretty much that: Is there a way to check to see if another program is running full screen 差不多: 有没有办法检查另一个程序是否正在全屏运行

My code Snippet (Runs in loop and checks if the process with specific name is fullsreen) https://pastebin.com/qwE7ZXVt 我的代码段(循环运行,并检查具有特定名称的进程是否已满) https://pastebin.com/qwE7ZXVt

Another possible solution based on window into style flags https://www.reddit.com/r/AutoHotkey/comments/6maqdd/detecting_if_window_in_the_foreground_is/ But I was unable to make it work. 另一个基于窗口进入样式标志的可能解决方案https://www.reddit.com/r/AutoHotkey/comments/6maqdd/detecting_if_window_in_the_foreground_is/但是我无法使其工作。 You can try to PM folks there. 您可以尝试在那里的PM伙伴。

Also this site was very handy https://www.pinvoke.net/index.aspx 另外这个网站非常方便https://www.pinvoke.net/index.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM