Archive: Windows Messages


Windows Messages
Hi Everybody!

I was kind of bored so I decided to do something that will contribute to society :)

I have made a header file (.nsh) that contains all the Windows messages I could find as NSIS !define's. If some are missing please post them here and I will add them.

An example:


!include WinMessages.nsh

;------------------------------------------------------------------------------
; 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 ${WM_CLOSE} 0 0
Sleep 100
Goto loop
done:
Pop $0
FunctionEnd


Hope it helps someone out there:D

Enjoy,
KiCHiK

Excellent :)

Thanks,
Dave.


Very handy. Perhaps something for the official distro? :)

Thanks :D


Well, If justin wishes to put it in the official version, I don't mind :)


Will do .. :)

-Justin