當前位置: 首頁>>代碼示例>>Python>>正文


Python idaapi.detach_action_from_menu方法代碼示例

本文整理匯總了Python中idaapi.detach_action_from_menu方法的典型用法代碼示例。如果您正苦於以下問題:Python idaapi.detach_action_from_menu方法的具體用法?Python idaapi.detach_action_from_menu怎麽用?Python idaapi.detach_action_from_menu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在idaapi的用法示例。


在下文中一共展示了idaapi.detach_action_from_menu方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _uninstall_load_file

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import detach_action_from_menu [as 別名]
def _uninstall_load_file(self):
        """
        Remove the 'File->Load file->Code coverage file...' menu entry.
        """

        # remove the entry from the File-> menu
        result = idaapi.detach_action_from_menu(
            "File/Load file/",
            self.ACTION_LOAD_FILE
        )
        if not result:
            return False

        # unregister the action
        result = idaapi.unregister_action(self.ACTION_LOAD_FILE)
        if not result:
            return False

        # delete the entry's icon
        idaapi.free_custom_icon(self._icon_id_file)
        self._icon_id_file = idaapi.BADADDR

        logger.info("Uninstalled the 'Code coverage file' menu entry") 
開發者ID:gaasedelen,項目名稱:lighthouse,代碼行數:25,代碼來源:ida_integration.py

示例2: _uninstall_load_batch

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import detach_action_from_menu [as 別名]
def _uninstall_load_batch(self):
        """
        Remove the 'File->Load file->Code coverage batch...' menu entry.
        """

        # remove the entry from the File-> menu
        result = idaapi.detach_action_from_menu(
            "File/Load file/",
            self.ACTION_LOAD_BATCH
        )
        if not result:
            return False

        # unregister the action
        result = idaapi.unregister_action(self.ACTION_LOAD_BATCH)
        if not result:
            return False

        # delete the entry's icon
        idaapi.free_custom_icon(self._icon_id_batch)
        self._icon_id_batch = idaapi.BADADDR

        logger.info("Uninstalled the 'Code coverage batch' menu entry") 
開發者ID:gaasedelen,項目名稱:lighthouse,代碼行數:25,代碼來源:ida_integration.py

示例3: unregisterAction

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import detach_action_from_menu [as 別名]
def unregisterAction(self):
        idaapi.detach_action_from_menu(self.menuPath, self.id)
        idaapi.unregister_action(self.id) 
開發者ID:FSecureLABS,項目名稱:win_driver_plugin,代碼行數:5,代碼來源:win_driver_plugin.py

示例4: term

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import detach_action_from_menu [as 別名]
def term(self):
        self.hooks.unhook()
        idaapi.detach_action_from_menu(MENU_PATH_GRAPHS, ShowXrefsGraphTo.get_name())
        idaapi.detach_action_from_menu(MENU_PATH_GRAPHS, ShowXrefsGraphFrom.get_name())
        ShowXrefsGraphTo.unregister()
        ShowXrefsGraphFrom.unregister() 
開發者ID:tmr232,項目名稱:Sark,代碼行數:8,代碼來源:xrefsgraph.py

示例5: _uninstall_open_coverage_overview

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import detach_action_from_menu [as 別名]
def _uninstall_open_coverage_overview(self):
        """
        Remove the 'View->Open subviews->Coverage Overview' menu entry.
        """

        # remove the entry from the View-> menu
        result = idaapi.detach_action_from_menu(
            "View/Open subviews/Hex dump",
            self.ACTION_COVERAGE_OVERVIEW
        )
        if not result:
            return False

        # unregister the action
        result = idaapi.unregister_action(self.ACTION_COVERAGE_OVERVIEW)
        if not result:
            return False

        # delete the entry's icon
        idaapi.free_custom_icon(self._icon_id_overview)
        self._icon_id_overview = idaapi.BADADDR

        logger.info("Uninstalled the 'Coverage Overview' menu entry")

    #--------------------------------------------------------------------------
    # Helpers
    #-------------------------------------------------------------------------- 
開發者ID:gaasedelen,項目名稱:lighthouse,代碼行數:29,代碼來源:ida_integration.py

示例6: _detach_from_menu_items

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import detach_action_from_menu [as 別名]
def _detach_from_menu_items(self):
        idaapi.detach_action_from_menu('Edit/Plugins/IdaMagnum/', 'idamagnum:searchmagic')
        idaapi.detach_action_from_menu('Edit/Plugins/IdaMagnum/', 'idamagnum:configure') 
開發者ID:lucasg,項目名稱:idamagnum,代碼行數:5,代碼來源:idamagnum_plugin.py

示例7: detach_menu_actions

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import detach_action_from_menu [as 別名]
def detach_menu_actions():
    idaapi.detach_action_from_menu(DBG_MENU_PATH, '%s:registers' % PLUGIN_NAME)
    idaapi.detach_action_from_menu(DBG_MENU_PATH, '%s:stack' % PLUGIN_NAME)

# ----------------------------------------------------------------------- 
開發者ID:danigargu,項目名稱:deREferencing,代碼行數:7,代碼來源:dereferencing.py


注:本文中的idaapi.detach_action_from_menu方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。