比如notepad,你可以先写一个右键菜单类:
/* Code Dummy */
winclass cl_rightmenu : PopupMenu
tag "$PopupMenu/({Point.x}, {Point.y})"
POINT Point
MenuItem Cut
tag "Cut"
MenuItem Copy
tag "Copy"
...
/* End Code Dummy */
再传参
cl_rightmenu rNP_menu
再当作方法使用
/* Code Dummy */
POINT p = Cursor.GetPosition()