SendMessage and Return got mixed up

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2008 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2002-12-27 21:24:30 +00:00
parent a719722b10
commit d14ea54399
2 changed files with 12 additions and 12 deletions

View file

@ -44,6 +44,18 @@ If HWND is a window, Gotos jump_if_window, otherwise, Gotos jump_if_not_window (
Sends a message to HWND. If a user variable $x is specified as the last parameter (or one before the last if you use /TIMEOUT), the return value of SendMessage will be stored to it. Note that when specifying 'msg' you must just use the integer value of the message. If you wish to send strings use "STR:a string" as wParam or lParam where needed.
\b \e{WM_CLOSE} 16
\b \e{WM_COMMAND} 273
\b \e{WM_USER} 1024
Include $\{NSISDIR\}\\Include\\WinMessages.nsh to have all of Windows messages defined in your script.
To send a string param, put STR: before the parameter, for example: "STR:Some string".
Use /TIMEOUT=time_in_ms to specify the duration, in milliseconds, of the time-out period.
\S2{setautoclose} SetAutoClose
\c true|false