This plugin sets up shortcuts from "Ctrl-Alt-Shift-A" through "Ctrl-Alt-Shift-Z" in IDA Pro, linking them to placeholder functions in the idaapi module. Each shortcut triggers a specific function, like idaapi.utilhotkey_A for "A", up to idaapi.utilhotkey_Z for "Z".
To use your own function with a shortcut, simply replace the placeholder function with your own. Here's an example on how to customize the action for "Ctrl-Alt-Shift-A":
import idaapi
def my_custom_action():
print("My custom action for Ctrl-Alt-Shift-A")
idaapi.utilhotkey_A = my_custom_actionTo install various hotkeys at once, you can use the install_hotkeys function:
import idaaapi
def myfunc1():
"""A: My custom action for Ctrl-Alt-Shift-A"""
print("My custom action for Ctrl-Alt-Shift-A")
def myfunc2():
"""B: My custom action for Ctrl-Alt-Shift-B"""
print("My custom action for Ctrl-Alt-Shift-B")
def myfunc3():
"""C: My custom action for Ctrl-Alt-Shift-C"""
print("My custom action for Ctrl-Alt-Shift-C")
MY_FUNCS = (
myfunc1,
myfunc2,
myfunc3,
)
idaapi.utilhotkeys_install(
MY_FUNCS,
install_help=True)