You handle it the same way you do any menu item. You add a subroutine whose name is the ID you've given to the menu item. Of course, you just do that manually, because since you haven't added the menu item with RPC's menu editor, RPC's menu editor can't automatically insert that function label for you.
3. Re: selectiing menu item after adding via guiaddmenu