手机
当前位置:查字典教程网 >编程开发 >编程语言综合 >NSIS入门之水纹特效脚本语言
NSIS入门之水纹特效脚本语言
摘要:/*脚本编写:zhfi特别感谢:Restools,X-Star*/!AddPluginDir"."!AddIncludeDir"."!inc...

NSIS入门之水纹特效脚本语言1

/*

脚本编写:zhfi

特别感谢:Restools,X-Star

*/

!AddPluginDir "."

!AddIncludeDir "."

!include MUI2.nsh

; --------------------------------------------------

; General settings.

Name "WaterCtrl_Test Example"

OutFile "WaterCtrl_Test.exe"

SetCompressor /SOLID lzma

ReserveFile "${NSISDIR}Pluginssystem.dll"

ReserveFile waterctrl.dll

;SetFont tahoma 8

; --------------------------------------------------

; MUI interface settings.

!define MUI_FINISHPAGE_NOAUTOCLOSE

; --------------------------------------------------

; Insert MUI pages.

!define MUI_WELCOMEFINISHPAGE_BITMAP WizModernImage-Is.bmp

; Installer pages

!define MUI_PAGE_CUSTOMFUNCTION_PRE pre

!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave

!insertmacro MUI_PAGE_WELCOME

!insertmacro MUI_PAGE_INSTFILES

!define MUI_PAGE_CUSTOMFUNCTION_Pre pre

!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave

!insertmacro MUI_PAGE_FINISH

; --------------------------------------------------

; Languages.

!insertmacro MUI_LANGUAGE "SimpChinese"

Function .onGUIEnd

SetPluginUnload manual

waterctrl::disablewater

System::Free

FunctionEnd

Function .onInit

InitPluginsDir

SetOutPath $PLUGINSDIR

File waterctrl.dll

SetOutPath $TEMP

FunctionEnd

Function Pre

System::Call 'user32::LoadImage(i,t,i,i,i,i,) i (0,"$PLUGINSDIRmodern-wizard.bmp",0,0,0,0x2010) .s'

Pop $R0

System::Call '$PLUGINSDIRwaterctrl::enablewater(i,i,i,i,i,i) i ($HWNDPARENT,0,0,$R0,3,50)'

System::Call '$PLUGINSDIRwaterctrl::setwaterparent(i $HWNDPARENT)'

System::Call '$PLUGINSDIRwaterctrl::flattenwater()'

System::Call '$PLUGINSDIRwaterctrl::waterblob(i,i,i,i) i (70,198,10,1000)'

FunctionEnd

Function leave

System::Call '$PLUGINSDIRwaterctrl::disablewater()'

FunctionEnd

Section "Dummy" SecDummy

SectionEnd

【NSIS入门之水纹特效脚本语言】相关文章:

Python标准库之Sys模块使用详解

遇到VS2010安装失败问题怎么办

总结的5个C#字符串操作方法分享

ruby元编程之创建自己的动态方法

给Python入门者的一些编程建议

NSIS入门之如何编写脚本语言实现火焰效果

如何编写NSIS自定义界面脚本

Java 程序死锁问题原理及解决方案

程序员新手指南之如何编写技术文档

在Python的Django框架中simple-todo工具的简单使用

精品推荐
分类导航