home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / nsis-2.46-setup.exe / Examples / Banner / Example.nsi
Encoding:
Text File  |  2009-01-31  |  698 b   |  38 lines

  1. # Look at Readme.txt for usage alongside with the Modern UI
  2.  
  3. !include "WinMessages.nsh"
  4.  
  5. Name "Banner.dll test"
  6.  
  7. OutFile "Banner Test.exe"
  8.  
  9. ShowInstDetails show
  10.  
  11. Function .onInit
  12.     Banner::show "Calculating important stuff..."
  13.  
  14.     Banner::getWindow
  15.     Pop $1
  16.  
  17.     again:
  18.         IntOp $0 $0 + 1
  19.         Sleep 1
  20.         StrCmp $0 100 0 again
  21.  
  22.     GetDlgItem $2 $1 1030
  23.     SendMessage $2 ${WM_SETTEXT} 0 "STR:Calculating more important stuff..."
  24.  
  25.     again2:
  26.         IntOp $0 $0 + 1
  27.         Sleep 1
  28.         StrCmp $0 200 0 again2
  29.  
  30.     Banner::destroy
  31. FunctionEnd
  32.  
  33. Section
  34.     DetailPrint "Using previous calculations to quickly calculate 1*2000..."
  35.     Sleep 1000
  36.     DetailPrint "Eureka! It's $0!!!"
  37.     DetailPrint ""
  38. SectionEnd