Please help me:
In NSIS 1.45, use:
FindWindow close WinampAgentMain ""
is exit the WinampAgent.
But in NSIS 2.0a0, is not.
How to do? Thx!
📻 📻 📻 📻 📻
About FindWindow...
4 posts
You first need to find the window, then send it a close message.
FindWindow $0 WinampAgentMain
; $0 now has the handle to the agent window
!include "WinMessages.nsh" ; point this to the right path
SendMessage $0 ${WM_CLOSE} 0 0
; ${WM_CLOSE} is defined in WinMessages.nsh, if you don't want
; to use it, its value is 16 or 0x10.
FindWindow $0 WinampAgentMain
; $0 now has the handle to the agent window
!include "WinMessages.nsh" ; point this to the right path
SendMessage $0 ${WM_CLOSE} 0 0
; ${WM_CLOSE} is defined in WinMessages.nsh, if you don't want
; to use it, its value is 16 or 0x10.
OK! Thanks!
Use 6 is OK, but the
!include "WinMessages.nsh"
is error.
📻 📻 📻 📻 📻
Use 6 is OK, but the
!include "WinMessages.nsh"
is error.
📻 📻 📻 📻 📻
16 not 6 🙂
WinMessages.nsh is in your NSIS dir, you need to give the path to it. If you installed NSIS in "C:\Program Files\NSIS\" use:
!include "C:\Program Files\NSIS\WinMessages.nsh"
If you are using a version above 2.0a2 WinMessages.nsh is in the Examples directory.
If you can't find it in any of the cases just use Windows find.
WinMessages.nsh is in your NSIS dir, you need to give the path to it. If you installed NSIS in "C:\Program Files\NSIS\" use:
!include "C:\Program Files\NSIS\WinMessages.nsh"
If you are using a version above 2.0a2 WinMessages.nsh is in the Examples directory.
If you can't find it in any of the cases just use Windows find.