Old 14th April 2011, 17:56   #1
JohnChen
Member
 
Join Date: Mar 2011
Posts: 80
Quote:
Originally Posted by Anders View Post
PHP Code:
!include LogicLib.nsh
StrCpy 
$1 0
loop
:
FindWindow $"MozillaUIWindowClass"
${IfThen} $${|} FindWindow $"MozillaWindowClass" ${|}
${If} $
<> 0
    SendMessage 
$0 0x0112 0xF060 0
    
    Sleep 500
    IntOp 
$$1
    IntCmp 
$1 25 "" loop
${EndIf} 
This works in both 3.6 and 4 on XP (In my non standard FF configuration), but like I said, you should ask the user, not close the windows on your own.
I know there is "confirm close" dialog in firefox when the user closes firefox. Right now, I just could not trigger this dialog no matter what I do. Do you have any idea how to achieve that? Thanks a lot.
JohnChen is offline   Reply With Quote
Old 20th April 2011, 08:40   #2
zenpoy
Junior Member
 
Join Date: Feb 2011
Posts: 38
Quote:
Originally Posted by JohnChen View Post
I know there is "confirm close" dialog in firefox when the user closes firefox. Right now, I just could not trigger this dialog no matter what I do. Do you have any idea how to achieve that? Thanks a lot.
You should create a new profile: firefox.exe -P
and create a new profile for testing.
zenpoy 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