From b4d2b3f8131bfa3c91bbd34e5a87df9e7b39f0e3 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Mon, 4 May 2009 19:04:33 +0000 Subject: [PATCH] idapythonrc.py: Added example for setting the script run timeout --- examples/idapythonrc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/idapythonrc.py b/examples/idapythonrc.py index 401f8a3..0a037b8 100644 --- a/examples/idapythonrc.py +++ b/examples/idapythonrc.py @@ -4,6 +4,7 @@ # Place this script to ~/.idapro/ or to # C:\Documents and Settings\%USER%\Application Data\Hex-Rays\IDA Pro #--------------------------------------------------------------------- +import idaapi # Add your favourite script to ScriptBox for easy access # scriptbox.addscript("/here/is/my/favourite/script.py") @@ -13,3 +14,6 @@ # Disable the Python from interactive command-line # idaapi.enable_python_cli(False) + +# Set the timeout for the script execution cancel dialog +# idaapi.set_script_timeout(10)