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

2009-05-13 Thread Nicolas EISEN
Tim Roberts a écrit : Nicolas EISEN wrote: I have a last little detail : the icon have the tranparence but the bmp take this in black. In win32ui, there are not attribute to set the background in white before write the bmp in DC ... an idea ? Did you do any investigation of this at

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

2009-05-05 Thread Tim Roberts
Nicolas EISEN wrote: I have a last little detail : the icon have the tranparence but the bmp take this in black. In win32ui, there are not attribute to set the background in white before write the bmp in DC ... an idea ? Did you do any investigation of this at all? Did you do dir(hdc) to

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

2009-05-05 Thread Greg Ewing
Nicolas EISEN wrote: the icon have the tranparence but the bmp take this in black. In win32ui, there are not attribute to set the background in white before write the bmp in DC ... an idea ? Draw a white rectangle over the bmp before calling DrawIcon? -- Greg

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

2009-04-30 Thread Nicolas EISEN
Tim Roberts a écrit : 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] ) )

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

2009-04-30 Thread Tim Roberts
Nicolas EISEN wrote: Tim Roberts a écrit : 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

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] 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] 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] Extract icon from exe files

2009-04-27 Thread EISEN Nicolas
Tim Roberts wrote: EISEN Nicolas wrote: I understand I will use these functions, but my problem is to found how? I have difficulties to understand how use the arguments : I try some combinations and it's doesn't work. Two big problems: 1 – When I read MSDN’s API for LoadIcon, How I

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

2009-04-27 Thread Tim Roberts
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 argument should be

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

2009-04-24 Thread Tim Roberts
EISEN Nicolas wrote: I understand I will use these functions, but my problem is to found how? I have difficulties to understand how use the arguments : I try some combinations and it's doesn't work. Two big problems: 1 – When I read MSDN’s API for LoadIcon, How I designed which exe Files

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

2009-04-21 Thread Mark Hammond
EISEN Nicolas wrote: Hi, After search, I found many function to get Handler from exe (or dll) file icons . But I don’t understand how use the Handler … For example: / Import win32gui i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0) icon = win32gui.LoadIcon ( i , 0)/ Or with ExtractIconEx

[python-win32] Extract icon from exe files

2009-04-20 Thread EISEN Nicolas
Hi, After search, I found many function to get Handler from exe (or dll) file icons . But I don’t understand how use the Handler … For example: / Import win32gui i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0) icon = win32gui.LoadIcon ( i , 0)/ Or with ExtractIconEx to get a list of all

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

2009-04-20 Thread Tim Roberts
EISEN Nicolas wrote: Hi, After search, I found many function to get Handler from exe (or dll) file icons . But I don’t understand how use the Handler … For example: / Import win32gui i= win32gui.ExtractIcon(0,'e:\\dxdiag.exe',0) icon = win32gui.LoadIcon ( i , 0)/ Or with