Re: [python-win32] Referencing a DLL, preferably using relative file path, etc.

2012-01-13 Thread Tim Roberts
Jacob Kruger wrote: > Although have looked around, haven't found too much consistent > information relating to doing something like referencing a DLL, > preferably using something like a relative file path, as opposed to > having it as a registered DLL through regsvr32, etc. > > Is this possible/

Re: [python-win32] Second DLL question

2012-01-13 Thread Tim Roberts
Jacob Kruger wrote: > How easy/simple is it to actually compile python code into a DLL to be > used on windows by other programming languages, etc.? > > I can easily enough use py2exe to generate command line apps that can > be called using command line arguments, etc., but was just wondering > (

[python-win32] Problem with win32gui and WM_CREATE

2012-01-13 Thread pierre baral
I have tried a lot of code found on the net such as the following: http://pastebin.com/raw.php?i=a19kZMeQ or also the following code: *import win32gui, win32con* *def wndProc(hwnd, msg, wParam, lParam): if msg == win32con.WM_CREATE: print 'message: WM_CREATE' if msg == win32con.WM_SIZE:

Re: [python-win32] Problem with win32gui and WM_CREATE

2012-01-13 Thread Amaury Forgeot d'Arc
Hi, 2012/1/13 pierre baral > and on my Windows, the message WM_CREATE is never sent. > That's not the case for the others messages which are correctly called but > not WM_CREATE I found an answer from 2005 :-) http://grokbase.com/t/python.org/python-win32/2005/04/python-win32-cant-catch-wm-cre

Re: [python-win32] Problem with win32gui and WM_CREATE

2012-01-13 Thread pierre baral
ARGH, too bad :) Does anyone know a message which is send only one time during the life of an application, just after the createwindow call? ;-p 2012/1/13 Amaury Forgeot d'Arc > Hi, > > 2012/1/13 pierre baral > >> and on my Windows, the message WM_CREATE is never sent. >> That's not the case

Re: [python-win32] Problem with win32gui and WM_CREATE

2012-01-13 Thread Tim Roberts
pierre baral wrote: > ARGH, too bad :) > > Does anyone know a message which is send only one time during the life > of an application, just after the createwindow call? ;-p WM_ACTIVATE is sent when your application becomes the topmost app. You can use a global to do something the first time you s