
naveen.garg at gmail
Nov 25, 2009, 5:57 PM
Post #2 of 2
(179 views)
Permalink
|
ok, its even easier than that. With autohotkey: pythondll := DllCall("LoadLibrary", "str", "c:\windows \system32\python26.dll") init := DllCall("c:\windows\system32\python26.dll\Py_Initialize" , "Cdecl") msgbox python initalized call := DllCall("c:\windows\system32\python26.dll\PyRun_SimpleString" , "str", "import sys", "Cdecl") msgbox will exit using python code call := DllCall("c:\windows\system32\python26.dll\PyRun_SimpleString" , "str", "sys.exit(0)", "Cdecl") init := DllCall("c:\windows\system32\python26.dll\Py_Finalize" , "Cdecl") msgbox % never called -- http://mail.python.org/mailman/listinfo/python-list
|