[python-win32] How to determine if a process (known pid) is still running ?

2008-10-04 Thread Stef Mientki
quite slow. Any better solutions ? thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to determine if a process (known pid) is still running ?

2008-10-05 Thread Stef Mientki
Tim Golden wrote: Stef Mientki wrote: How to determine if a process (known pid) os still running ? Googling the web, I found 1 solution in killing the process, but that's not what I want, I want to reuse the running process. I could also ask a complete list of active processes, but fr

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-11-28 Thread Stef Mientki
Don't most people nowadays wants, and maybe even needs, OS-independant applications ? cheers (from a happy wxPython user, formely a happy Delphi user ;-) Stef Mientki Thomas Heller wrote: Does Python need a native, pure Python, Windows GUI toolkit, one that uses win32 api calls direct

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-11-28 Thread Stef Mientki
Simon Dahlbacka wrote: On Fri, Nov 28, 2008 at 10:46 PM, Thomas Heller <[EMAIL PROTECTED]> wrote: Does Python need a native, pure Python, Windows GUI toolkit, one that uses win32 api calls directly to use native windows controls? How does it differ from http://venster.sourceforge.net/

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-12-03 Thread Stef Mientki
Werner F. Bruhin wrote: Thomas Heller wrote: Does Python need a native, pure Python, Windows GUI toolkit, one that uses win32 api calls directly to use native windows controls? Or would that development be a waste of resources, in these days of of Python.NET, Windows forms, IronPython, (and la

[python-win32] video capture in Python ?

2009-04-12 Thread Stef Mientki
a lot trial and error I expect. thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] overview of ntfs permissions ?

2009-05-26 Thread Stef Mientki
hello, is there a way to get an overview of ntfs permissions, of a specified part of a directory tree ? thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Fwd: Phyton editor

2009-06-04 Thread Stef Mientki
Mario Alejandro Vilas Jerez wrote: I like Python Scripter, it's free but it's got a small bug or two. The 1.7 version is better than the newer 1.9. http://www.mmm-experts.com/Downloads.aspx?ProductId=4 On Wed, Jun 3, 2009 at 7:57 PM, Steven James > wrote: I

[python-win32] bluetooth communication ?

2009-07-25 Thread Stef Mientki
x27;m stuck there. Are there any other ways (Windows only), to enumerate the bluetooth network and transfer a few files ? thanks, Stef Mientki I ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] how to find / kill child process ?

2009-09-07 Thread Stef Mientki
that command window. Now killing the the processes in my list, only kills the command windows and not the python python process. So how can I kill a process and all it's child processes ? thanks, Stef Mientki ___ python-win32 mailing lis

Re: [python-win32] how to find / kill child process ?

2009-09-07 Thread Stef Mientki
processes = WMI.InstancesOf('Win32_Process') for process in processes: pid = process.Properties_('ProcessID').Value parent = process.Properties_('ParentProcessId').Value print pid, parent thanks, Stef Julio Canto wrote: Stef Mientki escribió: hello

[python-win32] Is it possible to (un)check items in "Local Area Connection Properties" ?

2009-10-28 Thread Stef Mientki
task. The main disadvantage is that if the number of items above "Check Point SecuRemote" changes, the Auto-It script will (un)check the wrong item. thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.or

Re: [python-win32] Is it possible to (un)check items in "Local Area Connection Properties" ?

2009-10-29 Thread Stef Mientki
thanks Kevin, Kevin Horn wrote: On Wed, Oct 28, 2009 at 4:22 PM, Stef Mientki <mailto:stef.mien...@gmail.com>> wrote: hello, For connecting though CheckPoint VPN, I need to check the item "Check Point SecuRemote" in the Local Area Connections Properties.

[python-win32] Doesn't windows trust Python ? (20 seconds delay running a process from Python)

2009-11-01 Thread Stef Mientki
pa.cpl" ]) Does anyone have a clue, why starting a process takes 20 seconds longer when ran from Python ? And even more important, is there a work around ? thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Some questions about network shares ?

2009-12-15 Thread Stef Mientki
;=>", share['path'] if not resume: break A workaround, that seems to work correctly : try : os.path.exists ( Share_Name ) return True except : print 'OPP', Share_Name ... otherwise try to connect the share Any better ideas ? thanks,

Re: [python-win32] Some questions about network shares ?

2009-12-15 Thread Stef Mientki
Tim Golden wrote: Stef Mientki wrote: AFAIK it's not allowed to connect a network share more than once. As my shares can already be connected through by another program, I need to detect if a network share is already connected, So I try to get a list of available network shares, but I don&

[python-win32] Maybe the wrong newsgroup to ask ?

2010-01-27 Thread Stef Mientki
hello, I'm trying to kill processes, I started myself with subprocess.popen, under windows XP, Python 2.6 Why are the subprocess.Popen methods kill() and terminate () not working, while a simple suggestion from this newsgroup, shown below, works perfect ? thanks, Stef Mientki My_Pr

Re: [python-win32] Maybe the wrong newsgroup to ask ?

2010-01-27 Thread Stef Mientki
On 27-01-2010 20:07, Tim Roberts wrote: Stef Mientki wrote: I'm trying to kill processes, I started myself with subprocess.popen, under windows XP, Python 2.6 Why are the subprocess.Popen methods kill() and terminate () not working, while a simple suggestion from this newsgroup,

Re: [python-win32] Maybe the wrong newsgroup to ask ?

2010-01-27 Thread Stef Mientki
On 28-01-2010 00:08, Tim Roberts wrote: Stef Mientki wrote: Showing the code is always difficult for me, because I encapsulate these complex things. The code I gave above doesn't work either :-) I use a kill method that also kills the children and seems to be the essential thing is

[python-win32] How to fetch windows messages from another application ?

2010-01-30 Thread Stef Mientki
g messages from the foreign application in the main wxPython application. How do I fetch a windows message from the foreign application ? thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to fetch windows messages from another application ?

2010-01-31 Thread Stef Mientki
Thanks Harald, Although "message" is a crime to search on google, with you search words I found a workable solution If others are interested: http://blog.csdn.net/dahubaobao/archive/2009/09/10/4539324.aspx cheers, Stef On 31-01-2010 10:15, Massa, Harald Armin wrote: Stef, I do not have a read

[python-win32] hwnd of an application sometimes changes ??

2010-02-19 Thread Stef Mientki
Any explanation / solution ? thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] how to get access to someone's else Outlook Calendar ?

2010-04-28 Thread Stef Mientki
s\win32com\client\dynamic.py", line 512, in __getattr__ raise AttributeError("%s.%s" % (self._username_, attr)) AttributeError: Outlook.Application.Logon Any help would be much appreciated. thanks, Stef Mientki from win32com.client import constants import win32com.client im

Re: [python-win32] how to get access to someone's else Outlook Calendar ?

2010-05-03 Thread Stef Mientki
good hint. I found this VB script: http://www.outlookcode.com/codedetail.aspx?id=43 rewritten into Python (see code below, needs some refactoring), works great !! Now one small question, how do I get those constants, like constants.olFolderCalendar (=9) ? thanks, Stef Mi

Re: [python-win32] how to get access to someone's else Outlook Calendar ?

2010-05-11 Thread Stef Mientki
On 11-05-2010 04:01, Mark Hammond wrote: > On 4/05/2010 6:40 AM, Stef Mientki wrote: >> Now one small question, how do I get those constants, like >> constants.olFolderCalendar (=9) ? > > makepy needs to have been run for the object in question before the > constants magi

[python-win32] fast test if (unknown) process is running ? Why not use Autoit ?

2010-08-06 Thread Stef Mientki
ndly editor (Scite) AFAIK the disadvantages: - when distributing, you must add an extra file thanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] fast test if (unknown) process is running ? Why not use Autoit ?

2010-08-06 Thread Stef Mientki
thanks Tim, On 06-08-2010 13:44, Tim Golden wrote: > On 06/08/2010 12:27, Stef Mientki wrote: > Try psutil (which uses the toolhelp DLL): > > http://code.google.com/p/psutil/ > > > import psutil > > for p in psutil.process_iter (): > if p.name == "blah

Re: [python-win32] fast test if (unknown) process is running ? Why not use Autoit ?

2010-08-06 Thread Stef Mientki
thanks, On 06-08-2010 15:37, sharpblade wrote: > You are not using the WMI efficiently. You iterate over every process to test > if only one is > there, when you can use WMI like so: > > >>> import wmi > >>> x = wmi.WMI() > >>> x.query("SELECT * FROM Win32_Process WHERE Name = 'xchat.exe'") > [<

Re: [python-win32] fast test if (unknown) process is running ? Why not use Autoit ?

2010-08-06 Thread Stef Mientki
thanks Tim, On 06-08-2010 21:18, Tim Golden wrote: >> but that looks quit more complicated than psutils, >> besides that I believe that psutils is platform independant. > 0.082446869 > > Well, just to phrase is slightly differently: > > > import wmi > > c = wmi.WMI () > for p in c.Win32_Proc

Re: [python-win32] How to block ctrl-alt-delete on Windows 7?

2010-10-29 Thread Stef Mientki
In delphi I use http://www.kassl.de/winlock/index.shtml You might be able to use the executable that's included. cheers, Stef ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] wbemtest might be interesting

2011-01-16 Thread Stef Mientki
hello, I just got tipped about a program that's standard available in windows, wbemtest might be interesting to find or browse wmi settings. cheers, Stef ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/

Re: [python-win32] wbemtest might be interesting

2011-01-16 Thread Stef Mientki
On 16-01-2011 17:44, Tim Golden wrote: > On 16/01/2011 12:51 PM, Stef Mientki wrote: >> hello, >> >> I just got tipped about a program that's standard available in windows, >> wbemtest >> might be interesting to find or browse wmi settings. > &g

[python-win32] inserting an image in a word (2003) document

2011-05-31 Thread Stef Mientki
hello, I have word document, with special words like "$$$Name$$$", which are replaced with values from a database. If the special word starts with an underscore, like "$$$_Example$$$", the text should be replaced by an image. I use the code below, which works quit well for texts, but images, jus

Re: [python-win32] inserting an image in a word (2003) document

2011-06-01 Thread Stef Mientki
On 01-06-2011 10:59, Michel Claveau wrote: > Hi! > > Try: >sel = self.app.Selection >sel.InlineShapes.AddPicture("C:\\monimage.jpg",False,True) > > @-salutations thanks Michel, works like a charm. Maybe the code I posted was also (almost) good, but I had another error too in my code. But a

[python-win32] How to get active process list ?

2008-02-15 Thread Stef Mientki
hanks, Stef Mientki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to get active process list ?

2008-02-15 Thread Stef Mientki
//process.name> > > On Fri, Feb 15, 2008 at 10:11 AM, Stef Mientki <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > hello, > > How do I get the list of active processes ? > > I tried this call, but ... >items, instances

Re: [python-win32] Iron Python and Visual Basic 2005 (or 2008) Express

2008-03-04 Thread Stef Mientki
Dick Moores wrote: > Years ago I learned a bit of Visual Basic (VB6, > IIRC) at a community college. About a year ago I > downloaded the free Visual Basic 2005 Express > (), > but didn't do much with it. > > But I was wondering if it was possible to

Re: [python-win32] scripting pythonwin

2008-07-12 Thread Stef Mientki
bob gailer wrote: How can I learn to "script" pythonwin? I'd like to start with a script that would open an existing .py file in an edit window, then do various things such as: set the window size and position scroll the text position the cursor size the "class" pane position the splitter