I'll answer your key question with the next update, as it will be quicker that way, and more efficient.
Here's the example documentation for gui_getEventHwnd(), also, "***" denotes a comment that shouldn't be in the documentation. In addition, "
tab" is not for a paragraph, rather it denotes an indent for the entire text.
gui_getEventHwnd
Description
<tab>gui_getEventHwnd() retrieves the handle to the window of prior event triggered by Windows.
Parameters
<tab>There are no parameters for this function.
Return Value
<tab>hWnd AS INTEGER *** Syntax Highlighted Here ***
<tab><tab>This is the handle to the window from the event triggered by Windows.
Remarks
<tab>gui_getEvent() must be called prior to this command, otherwise you may get a random value from this, and can cause unwanted results.
Good Luck.
Cheers,
-naota
[EDIT] I'll see if I can make the example HTML page for ya.
[/EDIT]