[python-win32] AutoCAD automation with COM.

2009-04-28 Thread Costin Gamenţ
Hi, everybody! I'm trying to automate some tasks in AutoCAD (version 16.2 -- 2006) with Python and COM. Apparently there is a long standind bug with either win32com or AutoCAD: http://mail.python.org/pipermail/python-win32/2005-December/004075.html and I am having the same problem. Does

Re: [python-win32] Extract icon from exe files

2009-04-28 Thread EISEN Nicolas
Tim Roberts wrote: EISEN Nicolas wrote: / from win32gui import * import win32con listHicon = ExtractIconEx(c:\OpenOffice.exe,0) test = LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE) tupleIcon = GetIconInfo(test)/ To use GetIconInfo

Re: [python-win32] AutoCAD automation with COM.

2009-04-28 Thread Thomas Heller
Costin Gamenţ schrieb: Hi, everybody! I'm trying to automate some tasks in AutoCAD (version 16.2 -- 2006) with Python and COM. Apparently there is a long standind bug with either win32com or AutoCAD: http://mail.python.org/pipermail/python-win32/2005-December/004075.html and I am

[python-win32] Python Service Won't Start, But Does Debug

2009-04-28 Thread Robert Robinson
I'm new to using the win32 module and I've written a little service in python for myself. It runs fine and without errors when I use debug: python myService.py debug Debugging service myService - press Ctrl+C to stop. This works and prints to a log file I set up just fine, so I know it's working

Re: [python-win32] Extract icon from exe files

2009-04-28 Thread EISEN Nicolas
Tim Roberts wrote: EISEN Nicolas wrote: / from win32gui import * import win32con listHicon = ExtractIconEx(c:\OpenOffice.exe,0) test = LoadImage(listHicon[0],c:\OpenOffice.exe,0,0,0,win32con.LR_DEFAULTSIZE) tupleIcon = GetIconInfo(test)/ To use GetIconInfo

[python-win32] PythonWin IDE: how to assign a function/code to key F1 etc. ?

2009-04-28 Thread Robert
want to put new functions (short python code) on keys like F1, F12, Ctrl-F1 and other keys. Is there a mechanism/recipe ? ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Extract icon from exe files

2009-04-28 Thread Tim Roberts
EISEN Nicolas wrote: I'm lucky, I found ... My Source : /from win32gui import * import win32con from pywintypes import HANDLE import win32ui listHicon = ExtractIconEx(c:\OpenOffice.exe,0) tupleIcon = GetIconInfo (HANDLE ( listHicon[0][0] ) ) bitmapColor = tupel [4]

Re: [python-win32] AutoCAD automation with COM.

2009-04-28 Thread Costin Gamenț
On Tue, 28 Apr 2009 15:04:05 +0300, Thomas Heller thel...@ctypes.org wrote: You could try comtypes, it allows to specify the exact parameters that are passed as VARIANTs. There is even a sample snippet for autocad in the docs: http://starship.python.net/crew/theller/comtypes/ Thomas