Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 28th December 2001, 21:05   #1
Repzilon
Member
 
Join Date: Apr 2001
Posts: 51
Using FindWindow

I almost never used the FindWindow command. So a somewhat old NSIS script can not be compiled

This is the old FindWindow:
FindWindow "prompt" "Winamp 1.x" "You must close Winamp before continuing with the install process"

I read the 1.91 documentation and it says I have to use both FindWindow and SendMessage. How do I use them ?
Repzilon is offline   Reply With Quote
Old 29th December 2001, 01:07   #2
Schultz
Member
 
Join Date: Oct 2001
Posts: 71
this is from the functions.htm file located in your NSIS dir.
;-------------------------------------------------------------------
; CloseWinamp
;
; Closes all running instances of Winamp 1.x/2.x
;
; modifies no other variables
Function CloseWinamp
Push $0
loop:
FindWindow $0 "Winamp v1.x"
IntCmp $0 0 done
SendMessage $0 16 0 0
Sleep 100
Goto loop
done:
Pop $0
FunctionEnd
Schultz is offline   Reply With Quote
Reply
Go Back   Winamp 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