手机
当前位置:查字典教程网 >编程开发 >编程语言综合 >NSIS入门之如何编写脚本语言实现火焰效果
NSIS入门之如何编写脚本语言实现火焰效果
摘要:(有兴趣的用户不妨将下面这段代码复制到NSIS插件中运行看看)/*ifyouhavethiseffects,pleasekeep!Write...

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

(有兴趣的用户不妨将下面这段代码复制到NSIS插件中运行看看)

/*

if you have this effects,please keep!

Writer:【Mr.Z_production ·JUAN】

/53_54

Thanks:Restools,zhfi,X-Star

*/

!AddPluginDir "."

!AddIncludeDir "."

!include MUI2.nsh

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

; General settings.

Name "Flame_Effects Example"

OutFile "NSIS_fire.exe"

SetCompressor /SOLID lzma

ReserveFile "${NSISDIR}Pluginssystem.dll"

ReserveFile firectrl.dll

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

; 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

!define MUI_WELCOMEPAGE_TEXT "火焰效果"

!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 "english"

Function .onGUIEnd

SetPluginUnload manual

firectrl::disablefire

System::Free

FunctionEnd

Function .onInit

InitPluginsDir

SetOutPath $PLUGINSDIR

File firectrl.dll

SetOutPath $TEMP

FunctionEnd

Function Pre

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

Pop $R0

System::Call '$PLUGINSDIRfirectrl::enablefire(i,i,i,i,i) i ($HWNDPARENT,0,0,$R0,50)'

FunctionEnd

Function leave

System::Call '$PLUGINSDIRfirectrl::disablefire()'

FunctionEnd

Section "Dummy" SecDummy

SectionEnd

【NSIS入门之如何编写脚本语言实现火焰效果】相关文章:

C#关闭指定名字进程的方法

VB中如何实现注册表的读写

Shell脚本中引用、调用另一个脚本文件的2种方法

Powershell实现监测服务器连通状态

Ruby实现的矩阵连乘算法

认识NSIS入门之基本语法篇

Python扫描IP段查看指定端口是否开放的方法

在Docker中自动化部署Ruby on Rails的教程

Swift中的访问控制和protected

编写Python脚本把sqlAlchemy对象转换成dict的教程

精品推荐
分类导航