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-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)" t

Re: [python-win32] Fwd: First line is a mix of text characters and binary, after the first line all is binary.

2009-05-05 Thread Tim Roberts
Khalid Moulfi wrote: > > Hi all, > I come back on my issue : > Actually, the work I have to do is to process 35000 files. > On each of these files, I have to update only the first line, but keep > the remaining (Remaining is all but binary characters). > The issue is that the file after the second

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

2009-05-05 Thread Nicolas EISEN
Tim Roberts a écrit : I think you're making this a lot harder than it needs to be. import win32ui import win32gui import win32con import win32api ico_x = win32api.GetSystemMetrics(win32con.SM_CXICON) ico_y = win32api.GetSystemMetrics(win32con.SM_CYICON) large, smal

Re: [python-win32] gpedit reload method in python

2009-05-05 Thread le dahut
Hi, I tried it with "SHCNE_ALLEVENTS" as argument with no success : shell.SHChangeNotify(shellcon.SHCNE_ALLEVENTS, shellcon.SHCNF_IDLIST ,None) Any other idea ? Tim Golden wrote : le dahut wrote: Hello, "gpedit.msc" can change several parameters in system for example items in start me