找回密码
 加入
搜索
查看: 15017|回复: 31

AU3利用窗口的透明来做一个渐显的GUI

 火.. [复制链接]
发表于 2008-5-3 14:20:08 | 显示全部楼层 |阅读模式
;Animate&nbsp;Display&nbsp;*nice*&nbsp;addition<br />;&nbsp;Author&nbsp;Raindancer<br /><br />$hwnd&nbsp;=&nbsp;GUICreate(&quot;Animate&nbsp;Window&quot;,&nbsp;300,&nbsp;300)<br /><br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;10000,&nbsp;&quot;long&quot;,&nbsp;0x00080000);fade-in<br />GUISetState()<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00090000);fade-out<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040001);slide&nbsp;in&nbsp;from&nbsp;left<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050002);slide&nbsp;out&nbsp;to&nbsp;left<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040002);slide&nbsp;in&nbsp;from&nbsp;right<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050001);slide&nbsp;out&nbsp;to&nbsp;right<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040004);slide-in&nbsp;from&nbsp;top<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050008);slide-out&nbsp;to&nbsp;top<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040008);slide-in&nbsp;from&nbsp;bottom<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050004);slide-out&nbsp;to&nbsp;bottom<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040005);diag&nbsp;slide-in&nbsp;from&nbsp;Top-left<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x0005000a);diag&nbsp;slide-out&nbsp;to&nbsp;Top-left<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040006);diag&nbsp;slide-in&nbsp;from&nbsp;Top-Right<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050009);diag&nbsp;slide-out&nbsp;to&nbsp;Top-Right<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040009);diag&nbsp;slide-in&nbsp;from&nbsp;Bottom-left<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050006);diag&nbsp;slide-out&nbsp;to&nbsp;Bottom-left<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x0004000a);diag&nbsp;slide-in&nbsp;from&nbsp;Bottom-right<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050005);diag&nbsp;slide-out&nbsp;to&nbsp;Bottom-right<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00040010);explode<br />DllCall(&quot;user32.dll&quot;,&nbsp;&quot;int&quot;,&nbsp;&quot;AnimateWindow&quot;,&nbsp;&quot;hwnd&quot;,&nbsp;$hwnd,&nbsp;&quot;int&quot;,&nbsp;1000,&nbsp;&quot;long&quot;,&nbsp;0x00050010);implode<br /><br />#define&nbsp;AW_HOR_POSITIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000001<br />#define&nbsp;AW_HOR_NEGATIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000002<br />#define&nbsp;AW_VER_POSITIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000004<br />#define&nbsp;AW_VER_NEGATIVE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000008<br />#define&nbsp;AW_CENTER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00000010<br />#define&nbsp;AW_HIDE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00010000<br />#define&nbsp;AW_ACTIVATE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00020000<br />#define&nbsp;AW_SLIDE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00040000<br />#define&nbsp;AW_BLEND&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0x00080000<br /><br />
发表于 2008-5-7 19:02:59 | 显示全部楼层
要DLL文件啊。。。。。。。
发表于 2008-5-7 19:57:03 | 显示全部楼层
是个windows里面都有这个dll,这是api函数
发表于 2008-5-7 23:03:09 | 显示全部楼层
顶下..学习中
发表于 2008-5-10 15:41:14 | 显示全部楼层
GUISetState()为什么不紧跟着$hwnd = GUICreate("Animate Window", 300, 300)?
下面的#define AW_HOR_POSITIVE            0x00000001也不明白
发表于 2008-5-10 16:00:50 | 显示全部楼层
好像很高深的样子哦。。。。慢慢来,慢慢学习。。。。
发表于 2008-6-23 03:04:52 | 显示全部楼层
很有意思的小程序
发表于 2008-7-5 09:55:14 | 显示全部楼层
呵呵....有同感
偶的AU3还没入门
以前只弄VFP,后来就只用PB。
现在要从0学AU3了.....
发表于 2009-5-27 15:56:15 | 显示全部楼层
好像蛮有趣哦
发表于 2009-5-28 23:06:08 | 显示全部楼层
AU3,要好好学习下,不太懂
发表于 2009-8-27 00:28:54 | 显示全部楼层
看到了顶一下
发表于 2009-8-27 11:59:34 | 显示全部楼层
不太明显,怎么去掉标题呢。像delph那样的。
发表于 2009-8-27 13:24:44 | 显示全部楼层
非常好用,谢谢了
发表于 2009-9-8 10:06:42 | 显示全部楼层
学习下。。。
发表于 2010-1-20 14:40:04 | 显示全部楼层
非常好用,谢谢了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-11-22 03:11 , Processed in 0.155916 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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