Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th February 2011, 02:47   #1
Seon-dong yeon
Junior Member
 
Join Date: Feb 2011
Posts: 2
Question nsDialogs I do not quit

!include "nsDialogs.nsh"
!include "winmessages.nsh"
!include "logiclib.nsh"
OutFile "test.exe"

Page Custom pre

var dialog
var hwnd
var button

Function pre
nsDialogs::Create 1018
Pop $dialog
${NSD_CreateCheckbox} 0 0 50% 6% "I do not quit"
Pop $hwnd
${NSD_OnClick} $hwnd EnDisableButton

nsDialogs::Show
FunctionEnd

Function EnDisableButton
Pop $hwnd
${NSD_GetState} $hwnd $0
${If} $0 == 1
Quit ;-----I do not quit
${EndIf}
FunctionEnd

Section ""
SectionEnd

Quit if you let me know how?

Last edited by Seon-dong yeon; 15th February 2011 at 04:33.
Seon-dong yeon is offline   Reply With Quote
Old 15th February 2011, 07:53   #2
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Shanghai, China
Posts: 207
Function EnDisableButton
${NSD_GetState} $hwnd $0
${If} $0 = 1
Quit ;-----I do not quit
${EndIf}
FunctionEnd

Or try to replace "Quit" with "SendMessage $HWNDPARENT ${WM_CLOSE} 0 0"

Contact me: 137729898@qq.com
jiake is offline   Reply With Quote
Old 15th February 2011, 08:05   #3
Seon-dong yeon
Junior Member
 
Join Date: Feb 2011
Posts: 2
We've solved thanks!
Seon-dong yeon is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
command, nsdialogs, quit

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