分页: 85/86 第一页 上页 80 81 82 83 84 85 86 下页 最后页 [ 显示模式: 摘要 | 列表 ]

NSIS 闪屏扩大

不指定 月漩涡 , Mar 20 08:42 , NSIS , 评论(0) , 引用(0) , 阅读(245) , 本站原创

Name "AnimateWindow Center test"
OutFile "center_rnr.exe"


!include "MUI.nsh"
!define MUI_CUSTOMFUNCTION_GUIINIT MUIGUIInit
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_LANGUAGE "English"

!define IMG_NAME animate.jpg

!ifndef AW_HOR_POSITIVE
!define AW_HOR_POSITIVE             0x00000001
!define AW_HOR_NEGATIVE             0x00000002
!define AW_VER_POSITIVE             0x00000004
!define AW_VER_NEGATIVE             0x00000008
!define AW_CENTER                   0x00000010
!define AW_HIDE                     0x00010000
!define AW_ACTIVATE                 0x00020000
!define AW_SLIDE                    0x00040000
!define AW_BLEND                    0x00080000
!endif

Function .onInit



; blend sample, 1 sec default animation time
    animate::show /NOUNLOAD /SFG /BORDER /FLAGS=${AW_CENTER} "$EXEDIR\${IMG_NAME}"
    Pop $0 ; "show", "error" - for debug purposes

FunctionEnd

Function MUIGUIInit

; 2 sec wait for user click, if not - 2 sec rock-n-roll animate on close
    IntOp $R0 ${AW_VER_NEGATIVE} | ${AW_HOR_POSITIVE}
    IntOp $R0 $R0 | ${AW_SLIDE}
    animate::wait /FLAGS=$R0 /ATIME=2000 2000
    Pop $1 ; reason to exit - "click", "wait", "error", "terminate"
    ShowWindow $HWNDPARENT ${SW_RESTORE} ; set installer foreground
;    MessageBox MB_OK "show=$0 wait=$1"

FunctionEnd


Section
SectionEnd
 
Tags:

NSIS 闪屏有框架

不指定 月漩涡 , Mar 20 08:41 , NSIS , 评论(0) , 引用(0) , 阅读(247) , 本站原创

Name "AnimateWindow Blend test"
OutFile "blend.exe"


!include "MUI.nsh"
!define MUI_CUSTOMFUNCTION_GUIINIT MUIGUIInit
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_LANGUAGE "English"

!define IMG_NAME animate.jpg

!ifndef AW_HOR_POSITIVE
!define AW_HOR_POSITIVE             0x00000001
!define AW_HOR_NEGATIVE             0x00000002
!define AW_VER_POSITIVE             0x00000004
!define AW_VER_NEGATIVE             0x00000008
!define AW_CENTER                   0x00000010
!define AW_HIDE                     0x00010000
!define AW_ACTIVATE                 0x00020000
!define AW_SLIDE                    0x00040000
!define AW_BLEND                    0x00080000
!endif

Function .onInit



; blend sample, 1 sec default animation fade in
    animate::show /NOUNLOAD /SFG /BORDER /NOCANCEL "$EXEDIR\${IMG_NAME}"
    Pop $0 ; "show", "error" - for debug purposes
    Sleep 1000
; totaly 1 sec in this Function

FunctionEnd

Function MUIGUIInit

    animate::wait /IFNC 2000 ; additional 2 sec wait before 1 sec fade out (total 4)
    Pop $1 ; reason to exit - "click", "wait", "error", "terminate"
    ShowWindow $HWNDPARENT ${SW_RESTORE} ; set installer foreground
;    MessageBox MB_OK "show=$0 wait=$1"

FunctionEnd


Section
SectionEnd
 
Tags:

NSIS 闪屏无框架

不指定 月漩涡 , Mar 20 08:40 , NSIS , 评论(0) , 引用(0) , 阅读(246) , 本站原创


Name "AnimateWindow animgif test"
OutFile "animate.exe"


!include "MUI.nsh"
!define MUI_CUSTOMFUNCTION_GUIINIT MUIGUIInit
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_LANGUAGE "English"

!define IMG_NAME aist.gif

!ifndef AW_HOR_POSITIVE
!define AW_HOR_POSITIVE             0x00000001
!define AW_HOR_NEGATIVE             0x00000002
!define AW_VER_POSITIVE             0x00000004
!define AW_VER_NEGATIVE             0x00000008
!define AW_CENTER                   0x00000010
!define AW_HIDE                     0x00010000
!define AW_ACTIVATE                 0x00020000
!define AW_SLIDE                    0x00040000
!define AW_BLEND                    0x00080000
!endif

Function .onInit



; blend sample
    animate::show /NOUNLOAD /SFG /COLOR=0x60a0ff /NOCANCEL "$EXEDIR\${IMG_NAME}"
    Pop $0 ; show, error
    animate::hwnd /NOUNLOAD
    Pop $1
    AnimGif::play /NOUNLOAD /HWND=$1 "$EXEDIR\aist.gif" ; by default takes left top point color

    Sleep 3000

FunctionEnd

Function MUIGUIInit

    AnimGif::stop
   animate::wait /FLAGS=0 /IFNC 0
    Pop $1 ; reason to finish: click, wait, error, terminated
    ShowWindow $HWNDPARENT ${SW_RESTORE} ; set installer foreground
;    MessageBox MB_OK "show=$0 wait=$1"

FunctionEnd


Section
SectionEnd
 
Tags:

NSIS Gif动画

不指定 月漩涡 , Mar 20 08:33 , NSIS , 评论(0) , 引用(0) , 阅读(255) , 本站原创

;--------------------------------
; General Attributes

Name "AnimGif plug-in test"
OutFile "AnimGif.exe"
InstallDir "$PROGRAMFILES"


;--------------------------------
;Interface Settings

!include "MUI.nsh"
!define MUI_HEADERIMAGE
!define MUI_HEADERIMAGE_RIGHT
; empty white placeholders for animated GIF
!define MUI_HEADERIMAGE_BITMAP emptyh.bmp
; this will be hidden
!define MUI_WELCOMEFINISHPAGE_BITMAP emptyw.bmp
!define MUI_PAGE_CUSTOMFUNCTION_PRE pre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW show
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!define MUI_PAGE_CUSTOMFUNCTION_PRE pre
!define MUI_PAGE_CUSTOMFUNCTION_SHOW show
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE leave
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "English"

; for transparent images to be launched from 'show' function
!define COLOR_WINDOW 5
!define COLOR_BTNFACE 15 ; default for hidden windows - INSTFILES page color

Function pre

; hides control so we can draw on default target window
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 1" "Text" ""

Functionend

Function show

; for Back button - dll reset.
;  AnimGif::stop
; left logo on the Welcome page
  AnimGif::play /NOUNLOAD /HALIGN=LEFT /VALIGN=CENTER /BGCOL=${COLOR_WINDOW} "$EXEDIR\runrabbit.gif"

FunctionEnd

Function leave

  AnimGif::stop
; header image control
  GetDlgItem $0 $HWNDPARENT 1034
  AnimGif::play /NOUNLOAD /HWND=$0 /HALIGN=RIGHT /FIT=HEIGHT /BGCOL=${COLOR_WINDOW} "$EXEDIR\31m1.gif"
;  MessageBox MB_OK Returned

FunctionEnd


Function .onGUIEnd

  AnimGif::stop

FunctionEnd


Section


  Sleep 500
; during file install
  DetailPrint "Header logo"
;  Sleep 2000
  Sleep 2000
  DetailPrint "That's all"
  Sleep 500

SectionEnd
 
Tags:

NSIS Launcher Splash

不指定 月漩涡 , Mar 19 09:35 , NSIS , 评论(0) , 引用(0) , 阅读(301) , 本站原创
LauncherSplash.dll - plug-in that lets you throw
up a splash screen in NSIS installers with
fading effects (win2k/xp) and transparency.
Designed specially for application launchers,
when the launched application creates it's main window,
the splash screen fades out.
At the same time can play wav-mp3 sound file.

;===================================
;www.ppcqq.com
;月漩涡
;提供下载
;===================================

Usage:

1)   launchersplash::show [/NOUNLOAD] ClassName DelayMin DelayMax FadeIn FadeOut KeyColor [/BANNER] [/PASSIVE] [/NOCANCEL] FileName

ClassName - When launched later program creates a window of this class, image will be hidden
DelayMin  - minimal time (milliseconds) to show image
DelayMax  - maximal time (milliseconds) to show image
FadeIn    - time to show the fadein scene
FadeOut   - time to show the fadeout scene
KeyColor  - color used for transparency, could be any RGB value
   (for ex. R=255 G=100 B=16 -> KeyColor=0xFF6410),
   use KeyColor=-1 if there is no transparent color at your image.
   If KeyColor=-2 and image type is gif, plug-in attempts to extract
   transparency color value from the file header. For gif images
   transparency on the static background works even if KeyColor=-1.
/BANNER   - returns control to installer immediatelly after plug-in
   activation. Not depends on installer page - parent window NULL.
/NOCANCEL - disables 'exit on user click' default behaviour.
/PASSIVE  - not forces splash window to foreground.
FileName  - splash image filename (with extension!). Bmp, gif and jpg
   image types are supported.

For example:

     launchersplash::show TTOTAL_CMD 200 3000 0 0 -2 "$PLUGINSDIR\catch.gif"
or
     launchersplash::show /NOUNLOAD TTOTAL_CMD 0 1000 600 400 0xFF6410 /BANNER "$TEMP\spltmp.bmp"

    Use /NOUNLOAD with /BANNER key - this case plug-in not waits for
    the end of 'show' and returns control to installer. If used in .onInit
    function, /BANNER key requires 'ShowWindow $HWNDPARENT 2' in .onGUIInit


2)   launchersplash::wait

     Waits for the end of performance :). If 'show' already finished -
     exits immediately


3)   launchersplash::stop

     Terminates banner.


4)   launchersplash::play /NOUNLOAD [/LOOP] FileName

FileName - sound filename to play (with extension, wav, mp3 ...).
Empty Filename string "" stops sound.
For example:

     newadvsplash::play /NOUNLOAD /LOOP "$PLUGINSDIR\snd.mp3"
     newadvsplash::show 2000 1000 500 -1 "$PLUGINSDIR\iamfat.jpg"


4)   launchersplash::hwnd /NOUNLOAD

Gets splash window handle.
For example:

     launchersplash::hwnd /NOUNLOAD
     Pop $0 ; $0 is window handle now

Compatibility:
Basic - Win95 and later.
Fadein/fadeout - win2k/winxp.

Original code - Justin
Converted to a plugin DLL by Amir Szekely (kichik)
Fading and transparency by Nik Medved (brainsucker)
Gif and jpeg support, /BANNER and /CANCEL, mp3 support - Takhir Bedertdinov
Accelerated disparition by Maciej Adamczyk


下载文件 (已下载 7 次)
这个文件只能在登入之后下载。请先 注册登入
Tags:
分页: 85/86 第一页 上页 80 81 82 83 84 85 86 下页 最后页 [ 显示模式: 摘要 | 列表 ]