gpt4 book ai didi

.net - 如何发现哪个图像文件是 Windows 上的当前桌面背景?

转载 作者:可可西里 更新时间:2023-11-01 10:30:38 26 4
gpt4 key购买 nike

有可能以编程方式发现它吗?它会使用 Windows 注册表吗?我需要截屏并与磁盘上的文件进行比较吗?是否可以在桌面幻灯片模式下发现?

最佳答案

试试这个

using Microsoft.Win32;

private string GetCurrentWallpaper()

{
using(RegistryKey MyWallPaper = Registry.CurrentUser.OpenSubKey("Control Panel\\Desktop", false))
{
return MyWallPaper.GetValue("WallPaper").ToString();
}
}

再见。

关于.net - 如何发现哪个图像文件是 Windows 上的当前桌面背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1490202/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com