我其实是比较想写一些东西的,但是技术太烂了,所以很多想法都是搁浅的...
这篇文章的起因是因为啊噗啊噗UPUPOO这个软件
我开始以为是很简单的把一个动态视频设置为壁纸就可以了...
当然,现实总是不尽人意
直到后来看到了这个视频 『教程』动态壁纸 原理揭秘
代码也放上吧,其实很简单
#Include <SendMessage.au3>
#Include <Array.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Include <WinAPIEx.au3>
#include <WinAPI.au3>
$hGui = WinGetHandle("Program Manager", "")
_SendMessage($hGui, 0x52c, 0)
$hDrawLayer = GuiCreate("", @DesktopWidth, @DesktopHeight, 0, 0, BitOr($WS_CHILD, $WS_TABSTOP, $WS_POPUP))
DllCall("user32.dll", "int", "SetParent", "hwnd", $hDrawLayer, "hwnd", $hGui)
GUICtrlCreatePic("c:\fz.jpg", 0, 0, @DesktopWidth, @DesktopHeight)
GUISetState(@SW_SHOW)
Local $hGoal = Null
Local $hWndList = _WinAPI_EnumWindows()
For $i = 1 To $hWndList[0][0]
If $hWndList[$i][1] = "WorkerW" Then
Local $aChild = _WinAPI_EnumChildWindows($hWndList[$i][0], False)
If UBound($aChild) < 2 Then
$hGoal = $hWndList[$i][0]
ExitLoop
EndIf
EndIf
Next
WinSetState($hGoal, "", @SW_HIDE)
While 1
WEnd