Prev Previous Post   Next Post Next
Old 14th April 2011, 17:08   #10
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
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.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
 
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