autoit 发表于 2008-5-3 14:20:08

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

;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文件啊。。。。。。。

gooker 发表于 2008-5-7 19:57:03

是个windows里面都有这个dll,这是api函数

qq123140262 发表于 2008-5-7 23:03:09

顶下..学习中

kakinkgb 发表于 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

很有意思的小程序

chouliu 发表于 2008-7-5 09:55:14

呵呵....有同感
偶的AU3还没入门
以前只弄VFP,后来就只用PB。
现在要从0学AU3了.....

bachelor66 发表于 2009-5-27 15:56:15

好像蛮有趣哦

maples 发表于 2009-5-28 23:06:08

AU3,要好好学习下,不太懂

win123 发表于 2009-8-27 00:28:54

看到了顶一下

figons 发表于 2009-8-27 11:59:34

不太明显,怎么去掉标题呢。像delph那样的。

paulzhu 发表于 2009-8-27 13:24:44

非常好用,谢谢了

xiaozui 发表于 2009-9-8 10:06:42

学习下。。。

sxltme 发表于 2010-1-20 14:40:04

非常好用,谢谢了
页: [1] 2 3
查看完整版本: AU3利用窗口的透明来做一个渐显的GUI