[python-win32] better way to get current process's name
Tim Golden
mail at timgolden.me.uk
Fri Feb 23 12:55:45 CET 2007
Kelie wrote:
> Tim R, What do you mean by "installing" a Windows hook?
A Windows hook is fairly dark magic and essentially involves
adding a link into the chain of events whenever something
significant occurs within Windows -- mostly to do with the
Windows messages which are passed around between apps and
by the O/S. You really need to be sure you know what you're
doing before you launch out.
There's a useful-looking post here explaining how to
determine whether the Caps Lock is on or off:
http://blogs.msdn.com/michkap/archive/2006/03/29/562606.aspx
but, frankly, except as a learning exercise, I think you're
trying to do something which is messy in the extreme and
far more fiddly than perhaps it appears from the human
perspective.
I fully expect you now to go ahead, do it easily and prove
me wrong! (In which case, we want a good write-up).
TJG
More information about the Python-win32
mailing list