找回密码
 加入
搜索
查看: 1878|回复: 0

[GUI管理] CALLDLL user32.dll窗口动画能针对已经出现的窗口吗

[复制链接]
发表于 2010-11-23 18:23:54 | 显示全部楼层 |阅读模式
搜索论坛窗口动画的资料  都是针对新建窗口 用calldll user32.dll实现  看了效果很好 CPU使用率基本没有  
但我想要的效果是针对已经有的窗口 比如一个记事本窗口
$x = 0
While $x < 500
WinMove ("无标题 - 记事本","",100,100,$x,$x)
$x = $x+1
WEnd
基本上也算是有点动画效果   嘿嘿  不过CPU使用率太吓人了 希望高手提供一下更好的方法 要是能达到这种效果就最好了
$hwnd = GUICreate("窗口动画效果", 400, 300)
GUICtrlCreateLabel("动画效果", 50, 50, 300, 50)
GUICtrlSetFont( -1, 16, 800)

DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 500, "long", 0x00040010)
GUISetState()
Sleep(1000)
DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $hwnd, "int", 500, "long", 0x00050010)
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-3 00:24 , Processed in 0.075367 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表