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


Python idaapi.process_ui_action方法代碼示例

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


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

示例1: __call__

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def __call__(self):
        if self.__idx >= len(self.__action_list):
            return False

        # Execute one action
        idaapi.process_ui_action(
                self.__action_list[self.__idx],
                self.__flags)

        # Move to next action
        self.__idx += 1

        # Reschedule
        return True


# -------------------------------------------------------------------------- 
開發者ID:CvvT,項目名稱:dumpDex,代碼行數:19,代碼來源:idautils.py

示例2: graph_zoom_100

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def graph_zoom_100():
    idaapi.process_ui_action('GraphZoom100') 
開發者ID:tmr232,項目名稱:GraphGrabber,代碼行數:4,代碼來源:graphgrabber.py

示例3: graph_zoom_fit

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def graph_zoom_fit():
    idaapi.process_ui_action('GraphZoomFit') 
開發者ID:tmr232,項目名稱:GraphGrabber,代碼行數:4,代碼來源:graphgrabber.py

示例4: ProcessUiActions

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def ProcessUiActions(actions, flags=0):
    """
    @param actions: A string containing a list of actions separated by semicolon, a list or a tuple
    @param flags: flags to be passed to process_ui_action()
    @return: Boolean. Returns False if the action list was empty or execute_ui_requests() failed.
    """

    # Instantiate a helper
    helper = __process_ui_actions_helper(actions, flags)
    return False if len(helper) < 1 else idaapi.execute_ui_requests((helper,))


# ----------------------------------------------------------------------- 
開發者ID:CvvT,項目名稱:dumpDex,代碼行數:15,代碼來源:idautils.py

示例5: load_clr_file

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def load_clr_file(filepath):
    event_filter = TemporaryFilter(filepath)
    qApp.installEventFilter(event_filter)

    return idaapi.process_ui_action('SetColors') 
開發者ID:zyantific,項目名稱:IDASkins,代碼行數:7,代碼來源:clrapplier.py

示例6: activate

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def activate(self, ctx):
        action = fuzzy_search_main()

        if action:
            idaapi.process_ui_action(action)
        return 1 
開發者ID:Ga-ryo,項目名稱:IDAFuzzy,代碼行數:8,代碼來源:ida_fuzzy.py

示例7: fix_graph_layout

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def fix_graph_layout():
    def fun():
        idaapi.update_action_state("GraphLayout", 0)
        idaapi.process_ui_action("GraphLayout")
    idaapi.execute_ui_requests((fun,)) 
開發者ID:Riscure,項目名稱:DROP-IDA-plugin,代碼行數:7,代碼來源:helpers.py

示例8: fuzzy_search_main

# 需要導入模塊: import idaapi [as 別名]
# 或者: from idaapi import process_ui_action [as 別名]
def fuzzy_search_main():
    # Create form
    global f, choices, names
    choices = {}
    names = []
    gc.collect()

    # Runtime collector.
    # Pros
    # 1. No need to refresh automatically.(When GDB start, libc symbol,PIE's symbol,etc... address will change.When user rename symbol, also.)
    # 1.1. If you want to search library's function, view module list and right-click onto target library. Then click "Analyze module".
    # 2. Action's state is collect (When user start typing, active window is FuzzySearchForm. So filter doesn't works correctly. ex: OpHex is active at Disas view but not active at FuzzySearchForm.)
    # Cons
    # 1. Become slow in case large file.
    # 1.1. Re-generate dictionary isn't matter.(But scoring time will be bigger.)
    # func ptr and icon id
    registered_actions = get_registered_actions()
    for action in registered_actions:
        # IDA's bug? tilde exists many times in label. ex) Abort -> ~A~bort
        # So fix it.
        label = get_action_label(action).replace('~', '')
        icon = get_action_icon(action)[1]
        desctription = get_action_tooltip(action)
        if get_action_state(action)[1] > idaapi.AST_ENABLE:
            continue
        choices[label] = Commands(fptr=process_ui_action, args=[action], description=desctription, icon=icon)

    # Functions()
    # Heads()
    for n in Names():
        demangled = idc.demangle_name(n[1], idc.get_inf_attr(idc.INF_SHORT_DN))
        name = demangled if demangled else n[1]
        # jump to addr
        choices[name] = Commands(fptr=jumpto, args=[n[0]], description="Jump to " + name, icon=124)

    for n in Structs():
        choices[n[2]] = Commands(fptr=open_structs_window, args=[n[1]],
                                 description="Jump to Structure definition of " + n[2], icon=52)

    for k, v in choices.items():
        names.append(k)

    f = FuzzySearchForm()

    # Compile (in order to populate the controls)
    f.Compile()
    f.iStr1.value = ""
    # Execute the form
    ok = f.Execute()

    if ok == 1 and len(f.EChooser.items) > 0:
        f.get_selected_item().execute()
    # Dispose the form
    f.Free() 
開發者ID:Ga-ryo,項目名稱:IDAFuzzy,代碼行數:56,代碼來源:ida_fuzzy.py


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