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 enumerate(lst):
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
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
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
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 the
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
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
term.)
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 is
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.