When using the WPObject setup string MENUITEMSELECTED, the following menu IDs might be useful to you. Please keep in mind that not all of these are intended for all kinds of objects; for example, "Format disk" does not make sense on folders, and I don't know what will happen if you try this out. If you're lucky, nothing happens.

Note that the new menu items introduced by &xwp; have no fixed menu IDs, so they're not listed here. Instead, the &xwp; menu items have variable menu IDs, whose base is specified with the "&xwp; menu item ID offset" global setting. This base is added to WPMENUID_USER, which is 0x6500 (25856 decimal), and the &xwp; menu ID's are then added to that base to allow compatibility with other WPS enhancers. So if you wish to use an &xwp; menu item with MENUITEMSELECTED, you need some utility such as XRAY to figure out the "real" menu id. The ID will of course change again if you change the offset setting.

The following WPS menu IDs are taken from the Warp 3 Toolkit docs (I have excluded those which make no sense when called from REXX):

WPMENUID_OPEN 1
WPMENUID_HELP 2
WPMENUID_PRINT 3
WPMENUID_SELECT 4
WPMENUID_SORT 5
WPMENUID_FIND 8
WPMENUID_CREATEANOTHER 101
WPMENUID_MOVE 107
WPMENUID_COPY 108
WPMENUID_CREATESHADOW 316
WPMENUID_DELETE 109
WPMENUID_PROPERTIES 112
WPMENUID_PALETTE 317 ("Open" -> "Palette")
WPMENUID_REFRESH 503
WPMENUID_HELP_FOR_HELP 601
WPMENUID_HOWTOGETHELP 601
WPMENUID_EXTENDEDHELP 602
WPMENUID_HELPKEYS 603
WPMENUID_HELPINDEX 604
The following menu items are for the "Pickup" ("lazy drag") function:
WPMENUID_PICKUP 188
WPMENUID_PUTDOWN 189
WPMENUID_PUTDOWN_COPY 190
WPMENUID_PUTDOWN_MOVE 191
WPMENUID_PUTDOWN_LINK 192
WPMENUID_PUTDOWN_CANCEL 193
WPMENUID_PUTDOWN_CREATE 194
WPFolder items:
WPMENUID_SELALL 114
(select all folder items)
WPMENUID_DESELALL 115
(deselect all folder items)
WPMENUID_CLOSE 120
WPMENUID_TREE 123
("Open" -> "Tree view")
WPMENUID_ICON 303
("Open" -> "Icon view")
WPMENUID_DETAILS 304
("Open" -> "Details view")
WPMENUID_ARRANGE 309
(on &warp4; and higher, this is the "Default" Arrange item)
WPDesktop items:
WPMENUID_SHUTDOWN 704 (WPDesktop items)
WPMENUID_LOCKUP 705
WPMENUID_LOGIN 708
WPMENUID_LOGOUT 709
WPMENUID_ASSIGN 710
WPMENUID_UNASSIGN 711
WPMENUID_ACCESSNEW 712
WPMENUID_SYSTEMSETUP 713
WPMENUID_FORMAT 124 (WPDisk items)
WPMENUID_CHKDSK 128
WPMENUID_FIXDSK 129
WPMENUID_PROGRAM 132
WPMENUID_COPYDSK 182
WPMENUID_LOCKDISK 184
WPMENUID_EJECTDISK 185
WPMENUID_UNLOCKDISK 186

The following IDs are not officially documented by IBM, thus their symbols are not official (but invented by me). Most of them are available on &warp4; and higher only. The menu IDs are now in hexadecimal (use the REXX function X2D to convert them to decimal):

WPMENUID_PASTE 0x2CB
WPMENUID_VIEW_ICON 0x2CC
("View" -> "Icon view", as opposed to "Open"; &warp4; and higher only)
WPMENUID_VIEW_TREE 0x2CD
("View" -> "Tree view", as opposed to "Open"; &warp4; and higher only)
WPMENUID_VIEW_DETAILS 0x2CE
("View" -> "Details view", as opposed to "Open"; &warp4; and higher only)
WPMENUID_SORTBYNAME 0x1770
WPMENUID_SORTBYTYPE 0x1771
WPMENUID_SORTBYREALNAME 0x1777
WPMENUID_SORTBYSIZE 0x1778
WPMENUID_SORTBYWRITEDATE 0x1779
WPMENUID_SORTBYACCESSDATE 0x177B
WPMENUID_SORTBYCREATIONDATE 0x177D
WPMENUID_ARRANGEFROMTOP 0x2DE
WPMENUID_ARRANGEFROMLEFT 0x2DF
WPMENUID_ARRANGEFROMRIGHT 0x2E0
WPMENUID_ARRANGEFROMBOTTOM 0x2E1
WPMENUID_ARRANGEPERIMETER 0x2E3
WPMENUID_ARRANGEHORIZONTALLY 0x2E4
WPMENUID_ARRANGEVERTICALLY 0x2E5
WPMENUID_LOCKINPLACE 0x2DA
WPMENUID_VIEW 0x68
WPMENUID_REFRESH 0x1F7