Archive: [Help] Change Caption in runtime


[Help] Change Caption in runtime
I want to store caption to a Var and change in runtime.
I try
SendMessage $HWNDPARENT ${WM_SETTEXT} 0 `STR:Title`
but not work. How can I make it work?:rolleyes:


Use FindWindow ;)


There is no need to use FindWindow. $HWNDPARENT is already the HWND of the main window.

Your SendMessage might not have worked because you've forgotten to include WinMessages.nsh.

But there is no need for SendMessage. You can simply use a variable in the caption and change that variable in .onInit before it's processed.


Thanks kichik. I have forgotten caption allow using variable.


is there another way to avoid using this for every single page?