About FindWindow...
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!
:winamp: :winamp: :winamp: :winamp: :winamp:
Archive: About FindWindow...
About FindWindow...
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!
:winamp: :winamp: :winamp: :winamp: :winamp:
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.
OK! Thanks!
Use 6 is OK, but the
!include "WinMessages.nsh"
is error.
:winamp: :winamp: :winamp: :winamp: :winamp:
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.