Old 20th July 2004, 00:37   #1
DomiOh
Junior Member
 
Join Date: Jul 2004
Posts: 12
Automatically go to next page

Hi,

I have a big problem...

After clicking a special button on my CustomPage or after Executing a external App I want to display a new CustomPage.
I don't know how to do this.

I tried to solve it using SendMessage an WM_COMMAND to "click" on the Next button, but it doesn't work.

PHP Code:
GetDlgItem $0 $HWNDPARENT 1
SendMessage 
$${WM_COMMAND0 $HWNDPARENT 
or so:

PHP Code:
GetDlgItem $0 $HWNDPARENT 1
SendMessage $HWNDPARENT 
${WM_COMMAND$HWNDPARENT 0 
Has someone an idea how to do it ?

Thanks.
DomiOh is offline   Reply With Quote
Old 20th July 2004, 03:21   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
it should b:
GetDlgItem $0 $HWNDPARENT 1
SendMessage $HWNDPARENT ${WM_COMMAND} 1 $0


(NOTE: i didnt test this code)

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 20th July 2004, 06:23   #3
DomiOh
Junior Member
 
Join Date: Jul 2004
Posts: 12
Doesn't seem to work
DomiOh is offline   Reply With Quote
Old 20th July 2004, 07:47   #4
DomiOh
Junior Member
 
Join Date: Jul 2004
Posts: 12
Ah... It works.

@Anders: Thanks for your help. I have now used this code:

PHP Code:
          !insertmacro MUI_INSTALLOPTIONS_DISPLAY "Account_a.ini"
          
GetDlgItem $0 $HWNDPARENT 1
          EnableWindow 
$0 0
          SendMessage $HWNDPARENT 
${WM_COMMAND$0
          SendMessage $HWNDPAREMT 
${WM_NEXTDLGITEM1 0 
Perfectly !
DomiOh is offline   Reply With Quote
Old 20th July 2004, 08:43   #5
DomiOh
Junior Member
 
Join Date: Jul 2004
Posts: 12
Oh, I've just encountered another problem.

The thing is the following: I want to install an external application, let's say "DirectX".
I want to show a page that says that DirectX is being installed.
Without any user interaction I want to call "ExecWait".
After finishing DirectX-Setup I want to display another page, e.g. "All done".

Is that possible? And if it's possible, how?
DomiOh is offline   Reply With Quote
Old 20th July 2004, 12:19   #6
zimsms
Senior Member
 
zimsms's Avatar
 
Join Date: Jan 2004
Location: London, Ontario, Canada
Posts: 272
Why not use the banner plugin?
zimsms is offline   Reply With Quote
Old 20th July 2004, 12:23   #7
DomiOh
Junior Member
 
Join Date: Jul 2004
Posts: 12
What does that plugin do?
DomiOh is offline   Reply With Quote
Old 20th July 2004, 12:37   #8
zimsms
Senior Member
 
zimsms's Avatar
 
Join Date: Jan 2004
Location: London, Ontario, Canada
Posts: 272
It displays a banner with whatever text you tell it to. The banner is like a tiny progress window like the one you see when your installer is decompressing. Except its very simple. It's in the documentation and is distributed with NSIS.

code:

Banner::show /NOUNLOAD /set 76 "Please wait while Setup is loading..." "Caption"

...

Banner::destroy


zimsms is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump