当前位置:网站首页>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?
边栏推荐
- set和map使用讲解
- Redis命令---key篇 (超全)
- Scala中使用 Jackson API 进行JSON序列化和反序列化
- TikTok选品有什么技巧?
- Active users of mobile banking grew rapidly in June, hitting a half-year high
- 【ARK UI】HarmonyOS ETS的引导页的实现
- 800. 数组元素的目标和(双指针)
- 「POJ 3666」Making the Grade 题解(两种做法)
- 三星Galaxy Watch5产品图片流出 非Pro表款亦有蓝宝石加持
- MySQL数据高级查询之连接查询、联合查询、子查询[通俗易懂]
猜你喜欢
随机推荐
6-11 先序输出叶结点(15分)
CSV(Comma-Separate-Values)逗号分隔值文件
如何通过JMobile软件实现虹科物联网HMI/网关的报警功能?
Thoughts on Technology Sharing
Redis 持久化机制
MySQL 查询出重复出现两次以上的数据 - having
关于技术分享的思考
905. 区间选点(贪心)
状态压缩dp蒙德里安的梦想
pytorch使用Dataloader加载自己的数据集train_X和train_Y
含有PEG 间隔基和一个末端伯胺基团(CAS:1006592-62-6)化学试剂
[教你做小游戏] 只用几行原生JS,写一个函数,播放音效、播放BGM、切换BGM
西安凯新(CAS:2408831-65-0)Biotin-PEG4-Acrylamide 特性
【HMS core】【FAQ】AR Engine、Analytics Kit、Video Editor Kit、Image Kit、Map Kit典型问题合集2
CEO对今天的CIO们真正的要求是什么?
我们用48h,合作创造了一款Web游戏:Dice Crush,参加国际赛事
Redis command---key chapter (super complete)
常量
[Image dehazing] Image dehazing based on color attenuation prior with matlab code
Keil5退出仿真调试卡死的解决办法