SeeView Manual
SeeView Statements and Script Symbols
HP NonStop SeeView Manual—526355-004
9-126
WINDOW
The #MENU... intrinsics return information about the attributes of the window that 
invoked the script even if that window was not a menu.
For example, the following example associates the function keys F6 and F9 with 
user-defined script operations, Delete and Print. In all other respects, the psmail 
window is a normal window. 
[ BODY | SILL | BODYSILL ] 
indicates whether the function keys specified in fkey-list apply when the 
cursor is in the BODY or SILL area of the window. BODYSILL indicates that 
fkey-list applies to both areas of the window. BODY is the default. You can 
specify separate lists by using the KEYS option twice. For example:
WINDOW .. KEYS BODY F5,F6,F7 KEYS SILL F13,F14
fkey-list
refers to a comma-separated list of any of these keywords: 
You can also specify the fkey-list by using one or more string variables 
containing the comma-separated function key names. The string variable can 
also contain the BODY, SILL, BODYSILL, SAME, OFF options. For example:
SAME
specifies that the function key list for this window should be the same as the list 
associated with the window that caused a script to be invoked. Use SAME 
when you want your script to create or reassert a window with the same fkey-
list as the previously invoked menu or window.
?SECT PsmailWindow
 TASK psmail;
 WINDOW psmail HEAD "F6-Delete F9-Print"
    KEYS  F6, F9
    PRODUCTION "CALL MailProc";
?PROC MailProc
 VAR #cmd;
 IF #FKEY= 6 THEN #cmd := "DELETE " & #take #menutext;
 IF #FKEY= 9 THEN #cmd := "PRINT "  & #take #menutext;
 LINE #MENULINE,#MENUCOL;
 WINDOW psmail,#cmd CACHE LASTLINE NOFRAME;
--- Unshifted --- --- Shifted ---
F1 .. F16   SF1 ..  SF16
RETURNKEY   SRETURN
INSERTLINE   DELETELINE
NEXTPAGE PREVPAGE SNEXTPAGE SPREVPAGE
ROLLUP ROLLDOWN SROLLUP SROLLDOWN
VARIABLE   #mykeys:= "SILL F5, F6, F7".
WINDOW .. KEYS #mykeys;










