Detect & Close Winamp: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (Adding new author and category links.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{PageAuthor|jan}}
== Closing Winamp 1.x and 2.x ==
== Closing Winamp 1.x and 2.x ==


Line 28: Line 30:
</highlight-nsis>
</highlight-nsis>


Page author: [[User:jan|jan]]
[[Category:Other Products Version Detection Functions]]

Latest revision as of 12:05, 24 June 2005

Author: jan (talk, contrib)


Closing Winamp 1.x and 2.x

Function CloseWinamp
Push $5
loop:
FindWindow $5 "Winamp v1.x"
IntCmp $5 0 done
SendMessage $5 16 0 0
Sleep 100
Goto loop
done:
Pop $5
FunctionEnd

Closing Winamp 3.x

Function CloseWinamp3
Push $5
loop:
FindWindow $5 "STUDIO"
IntCmp $5 0 done
SendMessage $5 16 0 0
Sleep 100
Goto loop
done:
Pop $5
FunctionEnd