Python idaapi.UI_Hooks() Examples
The following are 7 code examples for showing how to use idaapi.UI_Hooks(). These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.
You may check out the related API usage on the sidebar.
You may also want to check out all available functions/classes of the module
idaapi
, or try the search function
.
Example 1
Project: ida-minsc Author: arizvisa File: ui.py License: BSD 3-Clause "New" or "Revised" License | 6 votes |
def __start_ida__(cls): api = [ ('idp', idaapi.IDP_Hooks), ('idb', idaapi.IDB_Hooks), ('ui', idaapi.UI_Hooks), ] # Create an alias so we save typing 19 chars.. priorityhook = internal.interface.priorityhook for attr, hookcls in api: # Attach a priority hooking queue to an instance of IDA's hooks instance = priorityhook(hookcls) # Explicitly assign the priority instance into our object if not hasattr(cls, attr): setattr(cls, attr, instance) # Now we can enable all the hooks so the user can use them instance.hook() return
Example 2
Project: grap Author: AirbusCyber File: PatternGenerationWidget.py License: MIT License | 5 votes |
def __init__(self, cc): idaapi.UI_Hooks.__init__(self) self.cc = cc self.selected_icon_number = idaapi.load_custom_icon(config['icons_path'] + "icons8-asterisk-24.png")
Example 3
Project: Sark Author: tmr232 File: lca.py License: MIT License | 5 votes |
def idaview_hooks(idaview_handler): class Hooks(idaapi.UI_Hooks): def finish_populating_widget_popup(self, form, popup): if idaapi.get_widget_type(form) == idaapi.BWN_DISASM: idaapi.attach_action_to_popup(form, popup, idaview_handler.get_name(), "") return Hooks
Example 4
Project: LazyIDA Author: L4ys File: LazyIDA.py License: MIT License | 5 votes |
def __init__(self): idaapi.UI_Hooks.__init__(self)
Example 5
Project: WatchDBG-IDA Author: Tekiter File: util.py License: MIT License | 5 votes |
def __init__(self): idaapi.UI_Hooks.__init__(self) self.popups = []
Example 6
Project: DROP-IDA-plugin Author: Riscure File: drop.py License: GNU General Public License v3.0 | 5 votes |
def __init__(self, plugin): self.plugin = plugin idaapi.UI_Hooks.__init__(self)
Example 7
Project: IDABuddy Author: tmr232 File: installer.py License: MIT License | 5 votes |
def _create_hooks(self, install_idabuddy): class InstallerUiHooks(idaapi.UI_Hooks): def updating_actions(self, ctx): if ctx.form_type == idaapi.BWN_DISASM: ida_widget = form_to_widget(ctx.form) idaview = ida_widget.children()[0] install_idabuddy(idaview) return super(InstallerUiHooks, self).updating_actions(ctx) return InstallerUiHooks()