Detect & Close Winamp: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library)
 
m (Updated author and download links, and changed format of some pages.)
Line 28: Line 28:
</highlight-nsis>
</highlight-nsis>


Page author: jan
Page author: [[User:jan|jan]]

Revision as of 12:39, 23 April 2005

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

Page author: jan