IDA Pro plugin with a shortcut to run the most previously used script.
Download runlastscript.py and extract it to your %IDADIR%/plugins/ directory.
- File -> Run previous script file
Or
- Ctrl+Shift+F7
If a python script entraps its code within a __name__ == "__main__", it will not run correctly.
If a python script uses implicit IDA modules (e.g. ida_kernwin) without explicitly importing the module, it will fail. TLDR, make sure all module code invokations fall under idaapi.
Also retrying some scripts can randomly crash IDA. I'm not sure why, but I think it has to do with modifying global variables.