SpiderBanner plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • develar
    Junior Member
    • Jun 2016
    • 6

    #31
    @JasonFriday13 Thanks a lot! Works as expected.

    Comment

    • JasonFriday13
      Major Dude
      • May 2005
      • 930

      #32
      @develar
      I've been reading your other thread, and just so you know, MUI_HEADERIMAGE_BITMAP is handled behind the scenes to extract the file at runtime so that it can be displayed. This doesn't happen for plugin calls so you have to use File /oname=$PLUGINSDIR\headerico.ico "${HEADER_ICO}" to include the icon and extract it to the plugins directory, then use SpiderBanner::Show /MODERN /ICON "$PLUGINSDIR\headerico.ico" to show it.
      "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
      NSIS 3 POSIX Ninja
      Wiki Profile

      Comment

      • develar
        Junior Member
        • Jun 2016
        • 6

        #33
        @JasonFriday13 Hi. Could you please add an option to translate text "Installing, please wait..."?

        Comment

        • JasonFriday13
          Major Dude
          • May 2005
          • 930

          #34
          Use this to change the text (this may not work if using other dialogs with the same parent):
          PHP Code:
          Name "Test"
          OutFile "Test1.exe"

          page instfiles

          !include "winmessages.nsh"

          RequestExecutionLevel user

          Section
            SpiderBanner
          ::Show
            FindWindow 
          $"#32770" "" $hwndparent
            FindWindow 
          $"#32770" "" $hwndparent $0
            GetDlgItem 
          $$0 1000
            SendMessage 
          $${WM_SETTEXT"STR:Text changed!"
            
          Sleep 3000
            SpiderBanner
          ::Destroy
          SectionEnd 
          Doing it this way means the plugin code remains unchanged. I knew it was possible to change it from the nsis script, I just never tried it until now.
          "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
          NSIS 3 POSIX Ninja
          Wiki Profile

          Comment

          • develar
            Junior Member
            • Jun 2016
            • 6

            #35
            @JasonFriday13 Thanks a lot. One note — it is very important to not forget to prepent text "STR:" otherwise text will be empty

            Comment

            • JasonFriday13
              Major Dude
              • May 2005
              • 930

              #36
              Yep, that's why it's in the example I gave .
              "Only a MouseHelmet will save you from a MouseTrap" -Jason Ross (Me)
              NSIS 3 POSIX Ninja
              Wiki Profile

              Comment

              Working...
              X