找回密码
 加入
搜索
查看: 8954|回复: 20

[原创] GUI:利用.she换肤窗口

 火... [复制链接]
发表于 2011-6-2 15:05:33 | 显示全部楼层 |阅读模式
#cs ____________________________________
 
 脚本目的:利用.she换肤窗口
    准备工作:
                1.必须文件:皮肤文件.she和USkin.dll;
    窗口换肤过程:
                1.fileinstall()所需文件;
                2.定义变量$skins和$DLL_存储换肤文件;
                3.利用DLLCALL()启用皮肤。
        注意事项:
                1。注意用fileinstall()载入文件的源路径必须是字符不能有变量;
                2.注意路径“\”符号必须存在,否则因路径导致无法找到更换皮肤所需文件;
                3.注意退出时将载入文件删除。
#ce _______________脚本开始_________________

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=

FileInstall("aero.she",@TempDir & "\aero.she")
FileInstall("Skin.dll",@TempDir & "\Skin.dll")
$skins=@TempDir & "\aero.she"
$Dll = DllOpen(@TempDir & "\Skin.dll")
DllCall($Dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
DllCall($Dll, "int", "SkinH_SetAero", "int", 1)

$Form1 = GUICreate("test .she skin", 633, 454, 192, 114)

GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd
发表于 2011-6-2 16:53:35 | 显示全部楼层
好贴,顶起来
发表于 2011-6-2 21:34:41 | 显示全部楼层
最近一个小工具,正好需要,谢谢了
发表于 2011-6-3 08:30:30 | 显示全部楼层
发表于 2011-6-3 10:37:25 | 显示全部楼层
能提供下aero.she和Skin.dll这两个文件不?
 楼主| 发表于 2011-6-3 11:08:12 | 显示全部楼层
回复 5# xiaozui
论坛搜索!
发表于 2011-10-24 15:14:10 | 显示全部楼层
又见楼主  
顶起
继续MARK
发表于 2011-10-27 14:54:49 | 显示全部楼层
发表于 2011-11-1 02:15:32 | 显示全部楼层
好东西必顶!..
发表于 2011-11-21 11:48:42 | 显示全部楼层
值得研究,谢谢楼主
发表于 2011-11-23 10:04:53 | 显示全部楼层
问下楼主载入文件的删除是什么啊,加在哪啊
发表于 2011-12-7 09:37:24 | 显示全部楼层
学习了。谢谢楼主
发表于 2011-12-9 08:58:26 | 显示全部楼层
学习一下,论坛越发的好
发表于 2011-12-18 19:39:12 | 显示全部楼层
学习一下,感谢分享!
发表于 2012-1-13 11:37:16 | 显示全部楼层
she換膚還不劊用,簡單容易上手,感謝了...
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-6 00:59 , Processed in 0.076929 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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