/*
<NSIS图片Flash特效脚本>
脚本编写:zhfi
html特效代码雨代码特别感谢:风铃夜思雨,Restools,X-Star
*/
Var hBitmap
!AddPluginDir ".\"
!AddIncludeDir ".\"
!include MUI.nsh
; --------------------------------------------------
; General settings.
Name "FlashLib_Test Example"
OutFile ""
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::Call '$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

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。