def _init_action_copy(self):
# load the icon for this action
self._copy_icon_id = 199
# describe the action
action_desc = idaapi.action_desc_t(
self.ACTION_COPY, # The action name.
"Copy function reference", # The action text.
IDACtxEntry(copy_function_cursor), # The action handler.
None, # Optional: action shortcut
"Copy reference of this function", # Optional: tooltip
self._copy_icon_id # Optional: the action icon
)
# register the action with IDA
assert idaapi.register_action(action_desc), "Action registration failed"
评论列表
文章目录