Re: [python-win32] better way to get current process's name

2007-02-22 Thread Kelie
Thanks again Tim G, Tim R and Mark M. Apparently the problem is a lot more involved than I had hoped/anticipated. Other than WHASUP and pywinauto, I'm also looking into AutoIt (http://www.autoitscript.com), seems I can put something together that's close to what I want without much difficulty. Ho

[python-win32] Media Wiki

2007-02-22 Thread James Matthews
A while ago the fact was brought up that we need a wiki for all the pythonwin32 info! I have acquired a domain name and wish to host this wiki but i want to know what people will want and i need people that will write articles please emails me! Thanks James -- http://www.goldwatches.com/watches.

Re: [python-win32] better way to get current process's name

2007-02-22 Thread Mark Mc Mahon
Hi, On 2/22/07, Tim Golden <[EMAIL PROTECTED]> wrote: > Kelie wrote: > > for every 0.1 second, check the active application or current > > application, or active window? (I don't know what is the correct > > term.) if it is AutoCAD (meaning user is using AutoCAD), turn on the > > CapsLock, if it i

[python-win32] better way to get current process's name

2007-02-22 Thread Roger Upole
Kelie wrote: > Thank you Tim and Mark. After trying what was suggested by you (both > work), I realized it is not what I was looking for. What I wanted to > do is: for every 0.1 second, check the active application or current > application, or active window? (I don't know what is the correct > te

Re: [python-win32] better way to get current process's name

2007-02-22 Thread Tim Roberts
Kelie wrote: > Thank you Tim and Mark. After trying what was suggested by you (both > work), I realized it is not what I was looking for. What I wanted to > do is: for every 0.1 second, check the active application or current > application, or active window? (I don't know what is the correct > te

Re: [python-win32] better way to get current process's name

2007-02-22 Thread Tim Golden
Kelie wrote: > for every 0.1 second, check the active application or current > application, or active window? (I don't know what is the correct > term.) if it is AutoCAD (meaning user is using AutoCAD), turn on the > CapsLock, if it is Microsoft Word (meaning user is using Word), turn > off the Cap

Re: [python-win32] better way to get current process's name

2007-02-22 Thread Kelie
Thank you Tim and Mark. After trying what was suggested by you (both work), I realized it is not what I was looking for. What I wanted to do is: for every 0.1 second, check the active application or current application, or active window? (I don't know what is the correct term.) if it is AutoCAD (

[python-win32] dbi.dbDate

2007-02-22 Thread Roger Upole
Robin Becker wrote: > Just came across a weird problem with dbi.dbDate; it seems it is based on the > 32bit time since 1970 used by python's time module. Unfortunately I have > financial data for a bunch of people with DOB <1940. > > > Nothing seems to blow up when I execute sql fetches, but th

[python-win32] Failure compiling from CVS

2007-02-22 Thread Sidnei da Silva
I'm getting the following error trying to compile from CVS as of today (Feb 22): com\win32comext\shell\src\PyIEmptyVolumeCache.cpp(131) : error C3861: 'PyWinObject_AsUPY_LONG_LONG': identifier not found, even with argument-dependent lookup error: command '"c:\Arquivos de programas\Microsoft Visual

[python-win32] DynamicProxies for VBA

2007-02-22 Thread Ivan
Hi guys, I have a couple of newbie questions, as the win32com stuff has been my first exposure to python. I managed to create python com wrappers with a DynamicPolicy, answering using _dynamic_ and I managed to create objects responding to methods declared in _public_methods_ I am now trying t

Re: [python-win32] better way to get current process's name

2007-02-22 Thread Mark Hammond
> is there an easier way to get the name of current process? It depends on what you mean by 'name'. Either 'sys.executable' or 'win32api.GetModuleFileName(0)' should give the same(-ish) result as Tim's script in most cases. Mark ___ Python-win32 maili

Re: [python-win32] better way to get current process's name

2007-02-22 Thread Tim Golden
Kelie wrote: > hello, > > is there an easier way to get the name of current process? i'm using > wmi module from Tim Golden. here is what i have: > > def find_first_match(func, lst): > """Find 1st item in a list that yield True for a give function.""" > match = None > for i, elem in e