aaaaaaaaaaaa
代码改变世界

交互界面相关函数

2018-03-04 17:52  二进制乐谱  阅读(263)  评论(0编辑  收藏  举报

idc

http://www.cnblogs.com/fply/p/8505348.html

 

 AskStr(defval, prompt)
    """
    Ask the user to enter a string

    @param defval: the default string value. This value will appear
             in the dialog box.
    @param prompt: 对话框中的提示信息

    @return: the entered string or None.
    """

 

AskStr("11","222")

 

 

AskFile(forsave, mask, prompt)
    """
    Ask the user to choose a file

    @param forsave: 0: "Open" dialog box, 1: "Save" dialog box
    @param mask: the input file mask as "*.*" or the default file name.
    @param prompt: the prompt to display in the dialog box

    @return: the selected file or None.

 

print AskFile(0,"*.exe","2222")

 

 

AskAddr(defval, prompt)
    """
    Ask the user to enter an address

    @param defval: an ea_t designating the default address value. This value
             will appear in the dialog box.
    @param prompt: the prompt to display in the dialog box

    @return: the entered address or BADADDR.

 

 

print AskAddr(ea,"222")

 

输入long

AskLong(defval, prompt)

 

 

AskSeg(defval, prompt)

AskYN(defval, prompt)

 

输出信息到控制台

Message(msg)

utf-8形式输出

UMessage(msg)

 

弹出窗口

Warning(msg)

 

 

Refresh()
"""
Refresh all disassembly views

 

RefreshLists()
"""
Refresh all list views (names, functions, etc)

 

aaaaaaaaaaaaa