API:StaticPopup OnClick

simulate "button pressed" on Popup frame

Arguments
Popup name

don't know all Popup frame names, but you can get them with StaticPopup_Visible

Button number

"OK" button is 1, "CANCEL" button is 2

Returns
nothing

Example code
this example will accept party request, but not directly - it's like if you press "ok" in request frame

Related Functions

 * StaticPopup_Visible