| Platform SDK: Agent | 
| Part | Description | 
|---|---|
| x | Required. An integer value that indicates the horizontal (x) screen coordinate to display the menu. These coordinates must be specified in pixels. | 
| y | Required. An integer value that indicates the vertical (y) screen coordinate to display the menu. These coordinates must be specified in pixels. | 
Agent automatically displays the character's pop-up menu when the user right-clicks the character. If you set AutoPopupMenu to False, you can use this method to display the menu.
The menu remains displayed until the user selects a command or displays another menu. Only one pop-up menu can be displayed at a time; therefore, calls to this method will cancel (remove) the former menu.
This method should be called only when your client application is the active client of the character; otherwise it fails. To determine the success of this method you can call it as a function and it will return a Boolean value indicating whether the method succeeded.
   If Genie.ShowPopupMenu (10,10) = True Then
      ' The menu will be displayed
   Else 
      ' The menu will not be displayed
   End If