当前位置:网站首页>Today's bug, click on the bug that the Windows dynamic wallpaper disappears in the win10 taskbar, and no solution has been found yet.
Today's bug, click on the bug that the Windows dynamic wallpaper disappears in the win10 taskbar, and no solution has been found yet.
2022-08-10 19:02:00 【Pymili】
What live wallpaper software do you all use on your desktop?wallpaper engine ? or homemade software?Open source software on github?The author also uses Python and tkinter to make a simple dynamic wallpaper program.I found a bug in one afternoon of use and haven't found a fix yet.
Click the win10 taskbar view after running the program
The wallpaper on the desktop successfully disappeared (or was removed), this bug is not only in the program I wrote, it is on githubI found two programs.OUS Wallpaper Wallpaper.Maker also has this bug after testing the two programs.
No reason has been found, guess it may be that when the user clicks on the task view window and refreshes the pm window of the program, the wallpaper is pushed out (just guess)
The implementation method of live wallpaper is to see the big guy:Draw Behind Desktop Icons in Windows 8+ - CodeProjectThe article realizes it.0x052c Information.
"""The window sends a message"""def pretreatmentHandle():hwnd = win32gui.FindWindow("Progman", "Program Manager")win32gui.SendMessageTimeout(hwnd, 0x052C, 0, None, 0, 0x03E8)hwnd_WorkW = Nonewhile 1:hwnd_WorkW = win32gui.FindWindowEx(None, hwnd_WorkW, "WorkerW", None)# print('hwmd_workw: ', hwnd_WorkW)if not hwnd_WorkW:continuehView = win32gui.FindWindowEx(hwnd_WorkW, None, "SHELLDLL_DefView", None)# print('hwmd_hView: ', hView)if not hView:continueh = win32gui.FindWindowEx(None, hwnd_WorkW, "WorkerW", None)# print('h_1: ',h)while h:win32gui.SendMessage(h, 0x0010, 0, 0) # WM_CLOSEh = win32gui.FindWindowEx(None, hwnd_WorkW, "WorkerW", None)# print(h)breakreturn hwnd
"""Window creates child window"""def main(WindowsTitle, SleepTime):global _id_while True:_HWND = get_hwnd_from_name(WindowsTitle)if_HWND:_id_ = _HWNDsleep(SleepTime)win32gui.SetParent(_HWND, pretreatmentHandle())breakelse:continue
Is there anyone with experience who can solve this bug?
边栏推荐
- 【ARK UI】HarmonyOS ETS的引导页的实现
- PG中的Index-Only Scans解密
- 魔方电池如何“躺赢”?解锁荣威iMAX8 EV“头等舱”安全密码
- VoLTE基础自学系列 | 3GPP规范解读之Rx接口(上集)
- 第15章_锁
- 一颗完整意义的LPWAN SOC无线通信芯片——ASR6601
- MSE 治理中心重磅升级-流量治理、数据库治理、同 AZ 优先
- DefaultSelectStrategy NIOEventLoop执行策略
- Keras深度学习实战(17)——使用U-Net架构进行图像分割
- Interface test advanced interface script using -apipost (pre/post execution script)
猜你喜欢
弘玑Cyclone与风变科技达成战略合作:优势互补聚焦数字化人才培养
Active users of mobile banking grew rapidly in June, hitting a half-year high
从企业的视角来看,数据中台到底意味着什么?
DefaultSelectStrategy NIOEventLoop执行策略
【数据存储精讲】整型和浮点型有什么区别?为什么会精度丢失?
MySQL安装步骤
【HMS core】【FAQ】Account Kit、push Kit典型问题合集1
Keil5退出仿真调试卡死的解决办法
我们用48h,合作创造了一款Web游戏:Dice Crush,参加国际赛事
MySQL 查询出重复出现两次以上的数据 - having
随机推荐
魔方电池如何“躺赢”?解锁荣威iMAX8 EV“头等舱”安全密码
【深度学习前沿应用】图像风格迁移
陕西CAS:1244028-50-9_Biotin-PEG3-SCO-PPh3 固体
6-11 Preorder output leaf nodes (15 points)
803. 区间合并(贪心)左端点、右端点排序均可
第四届“传智杯”全国大学生IT技能大赛(初赛A组) 补题
西安凯新(CAS:2408831-65-0)Biotin-PEG4-Acrylamide 特性
开发模式对测试的影响
【HMS core】【FAQ】AR Engine、Analytics Kit、Video Editor Kit、Image Kit、Map Kit典型问题合集2
FPGA:生成固化文件(将代码固化到板子上面)
剑指 Offer II 042. 最近请求次数-队列法
补坑简单图论题
[教你做小游戏] 斗地主的手牌,如何布局?看25万粉游戏区UP主怎么说
800. 数组元素的目标和(双指针)
云渲染的应用正在扩大,越来越多的行业需要可视化服务
阿里云贾朝辉:云 XR 平台支持彼真科技呈现国风科幻虚拟演唱会
【图像去雾】基于颜色衰减先验的图像去雾附matlab代码
MySQL安装步骤
让mixin为项目开发助力【及递归优化新尝试】
MSE 治理中心重磅升级-流量治理、数据库治理、同 AZ 优先