Yes, you will need to define those in your JS. I suggest you to make them public (put them over all other code):
code:
var EM_SCROLL = 181;
var SB_PAGEDOWN = 3;
Those are defined in "windows.h", a C/C++ header file. I have given you the right values, so just enjoy it!
To find windows messages out yourself, I suggest you to download the Platform SDK (if you don't already have it), and open "winuser.h" or "windows.h", and find the value you are looking for.
Also,
make sure you send this message to the richedit/edit, not the whole PlusWnd.
Edit: windows.h is a C header file.
Edit2:
In order to make this work, you will have to call like this:code:
Window1.SendControlMessage("Test", EM_SCROLL, SB_PAGEDOWN, 0);
);