最新消息:

NSIS图片Flash特效脚本

nsis 永恒心锁 1550浏览 0评论
Var hBitmap

!AddPluginDir ".\"
!AddIncludeDir ".\"

!include MUI.nsh

; --------------------------------------------------
; General settings.

Name "FlashLib_Test Example"
OutFile "FlashLib_Test.exe"
SetCompressor /SOLID lzma

ReserveFile "${NSISDIR}\Plugins\system.dll"
ReserveFile "FlashLib.dll"
ReserveFile "1.swf"

; --------------------------------------------------
; MUI interface settings.
!define MUI_FINISHPAGE_NOAUTOCLOSE
; --------------------------------------------------

; 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
System::Call 'FlashLib::FlashLibFree(i $hBitmap)'
System::Free
Delete /REBOOTOK $PLUGINSDIR\FlashLib.dll
RMDIR /REBOOTOK $PLUGINSDIR
FunctionEnd

Function .onInit
InitPluginsDir
SetOutPath $PLUGINSDIR
File 1.swf
File FlashLib.dll
SetOutPath $TEMP
FunctionEnd

Function Pre
System::Call 'user32::LoadImage(i,t,i,i,i,i,) i (0,"$PLUGINSDIR\modern-wizard.bmp",0,0,0,0x2010) .s'
Pop $R0
System::Call '$PLUGINSDIR\FlashLib::FlashLibInit(i,i,i,i,i,i,i) i (0,0,164,291,$HWNDPARENT,$R0,true) .s'
Pop $hBitmap
System::Call '$PLUGINSDIR\FlashLib::FlashLoadMovie(i,t) i ($hBitmap,"$PLUGINSDIR\1.swf")'
/*
System::Call '$PLUGINSDIR\FlashLib::FlashPlay(i $hBitmap)'
System::Call '$PLUGINSDIR\FlashLib::FlashStop(i $hBitmap)'
System::Call '$PLUGINSDIR\FlashLib::FlashStopPlay(i $hBitmap)'
System::Call '$PLUGINSDIR\FlashLib::FlashPutLoop(i,i) i ($hBitmap,true)'
System::Call '$PLUGINSDIR\FlashLib::FlashPutMenu(i,i) i ($hBitmap,true)'
System::Call '$PLUGINSDIR\FlashLib::FlashPutStandardMenu(i,i) i ($hBitmap,true)'
System::Call '$PLUGINSDIR\FlashLib::FlashBack(i $hBitmap)'
System::Call '$PLUGINSDIR\FlashLib::FlashForward(i $hBitmap)'
System::Call '$PLUGINSDIR\FlashLib::FlashRewind(i $hBitmap)'
System::Call '$PLUGINSDIR\FlashLib::FlashZoom(i,i) i ($hBitmap,DWORD)'
System::Call '$PLUGINSDIR\FlashLib::FlashGotoFrame(i,i) i ($hBitmap,DWORD)'
System::Ca


ll '$PLUGINSDIR\FlashLib::FlashSetVariableA(i,t,i) i ($hBitmap,Name,Value)'
*/
FunctionEnd

Function leave
System::Call '$PLUGINSDIR\FlashLib::FlashLibFree(i $hBitmap)'
FunctionEnd

Section "Dummy" SecDummy
SectionEnd
免责声明:根据《计算机软件保护条例》第十七条规定“为了学习和研究软件内含的设计思想和原理,通过安装、显示、传输或者存储软件等方式使用软件的,可以不经软件著作权人许可,不向其支付报酬。”您需知晓本站所有内容资源均来源于网络,仅供用户交流学习与研究使用,版权归属原版权方所有,版权争议与本站无关,用户本人下载后不能用作商业或非法用途,需在24个小时之内从您的电脑中彻底删除上述内容,否则后果均由用户承担责任;如果您访问和下载此文件,表示您同意只将此文件用于参考、学习而非其他用途,否则一切后果请您自行承担,如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。丨本站为个人博客非盈利性站点,所有软件信息均来自网络,所有资源仅供学习参考研究目的,并不贩卖软件,不存在任何商业目的及用途。丨本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » NSIS图片Flash特效脚本

您必须 登录 才能发表评论!