Old 13th April 2011, 21:12   #1
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
PHP Code:
!include LogicLib.nsh
loop
:
FindWindow $"MozillaUIWindowClass"
${If} $<> 0
    SendMessage 
$0 0x0112 0xF060 0    
    Sleep 250
    
goto loop
${EndIf} 
If firefox has "confirm close with multiple tabs open", who knows what will happen, you might want to limit the loop to 50 retries or so...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 13th April 2011, 22:07   #2
JohnChen
Member
 
Join Date: Mar 2011
Posts: 80
Quote:
Originally Posted by Anders View Post
PHP Code:
!include LogicLib.nsh
loop
:
FindWindow $"MozillaUIWindowClass"
${If} $<> 0
    SendMessage 
$0 0x0112 0xF060 0    
    Sleep 250
    
goto loop
${EndIf} 
If firefox has "confirm close with multiple tabs open", who knows what will happen, you might want to limit the loop to 50 retries or so...
Thanks for your reply. It doesn't work. FindWindow $0 "MozillaUIWindowClass" always set $0 to zero. Any further ideas? Thank you very much!
JohnChen 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