当前位置:网站首页>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:continueIs there anyone with experience who can solve this bug?
边栏推荐
- LeetCode·283.移除零·双指针
- Thoughts on Technology Sharing
- 幕维三维动画——港珠澳大桥沉管安装三维动画实况
- Intelligent bid strategy how to affect advertising effectiveness?
- Three schemes of SQL query across the table
- shell运算详解,看这一篇就够了!
- How to choose Fengjiawei PHY62xx series?PHY6222/PHY6212/PHY6252
- [教你做小游戏] 只用几行原生JS,写一个函数,播放音效、播放BGM、切换BGM
- 1720. 解码异或后的数组
- 请问下在datastream中用flinkcdc怎么设置jdbc的参数useSSL=false呀
猜你喜欢
随机推荐
C#/VB.NET 将PDF转为PDF/X-1a:2001
Intelligent bid strategy how to affect advertising effectiveness?
FPGA:基础入门按键控制蜂鸣器
【深度学习前沿应用】图像风格迁移
开发模式对测试的影响
PG中的Index-Only Scans解密
陕西CAS:1244028-50-9_Biotin-PEG3-SCO-PPh3 固体
瑞吉外卖学习笔记4
Keil5退出仿真调试卡死的解决办法
位算符详解 按位与、或、异或、取反、左移、右移
【快应用】实现自定义导航栏组件
多种深度模型实现手写字母MNIST的识别(CNN,RNN,DNN,逻辑回归,CRNN,LSTM/Bi-LSTM,GRU/Bi-GRU)
破解校园数字安全难点,联想推出智慧教育安全体系
FPGA:从0开始(安装开发环境)加破解
MySQL 查询出重复出现两次以上的数据 - having
API 网关的功能
罗克韦尔Rockwell Automation EDI 项目
FPGA工程师面试试题集锦61~70
6-11 Preorder output leaf nodes (15 points)
「POJ 3666」Making the Grade 题解(两种做法)









