Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-24 Thread Mark Hammond
> [1] On my python (active state 2.5.1), the > WTSGetActiveConsoleSessionId() function raises NotImplementedError. > However, I can easily run it by just invoking it through ctypes: > ctypes.windll.kernel32.WTSGetActiveConsoleSessionId() Is this a bug? It is a bug, and I've just checked in a fix (

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-24 Thread Matt Herbert (matherbe)
ts > Sent: Friday, October 24, 2008 2:41 PM > To: Python-Win32 List > Subject: Re: [python-win32] Interacting with the desktop as a > service onVista > > Matt Herbert (matherbe) wrote: > > Steven, > > > > Thanks, I will give this a try. > > > > So then

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-24 Thread Tim Roberts
Matt Herbert (matherbe) wrote: > Steven, > > Thanks, I will give this a try. > > So then, is it fair to say that it is not possible (on Vista) to have > a service spawn a process as a different user, and have that new > process interact with the desktop? No, that's not fair to say! The mechan

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-24 Thread Matt Herbert (matherbe)
:[EMAIL PROTECTED] On Behalf Of Steven James Sent: Thursday, October 23, 2008 12:54 PM To: python-win32@python.org Subject: Re: [python-win32] Interacting with the desktop as a service onVista Because I like fun stuff and knowing that people at cisco

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Steven James
On Thu, Oct 23, 2008 at 1:04 PM, Sidnei da Silva <[EMAIL PROTECTED]>wrote: > On Thu, Oct 23, 2008 at 2:54 PM, Steven James <[EMAIL PROTECTED]> > wrote: > > Because I like fun stuff and knowing that people at cisco use hacks like > > this, here you go, this should work... > > > > (cut to snippets b

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Sidnei da Silva
On Thu, Oct 23, 2008 at 2:54 PM, Steven James <[EMAIL PROTECTED]> wrote: > Because I like fun stuff and knowing that people at cisco use hacks like > this, here you go, this should work... > > (cut to snippets because of length) > http://snippets.dzone.com/posts/show/6324 > > As mentioned before, t

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Steven James
gt; To: Python-Win32 List > > Subject: Re: [python-win32] Interacting with the desktop as a > > service onVista > > > > Matt Herbert (matherbe) wrote: > > > My situation is I have a python service which runs 24/7. > > Occasionally > > > The service needs to acce

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-22 Thread Matt Herbert (matherbe)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Tim Roberts > Sent: Wednesday, October 22, 2008 1:48 PM > To: Python-Win32 List > Subject: Re: [python-win32] Interacting with the desktop as a > service onVista >

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-22 Thread Tim Roberts
Matt Herbert (matherbe) wrote: > My situation is I have a python service which runs 24/7. Occasionally > The service needs to access windows on the desktop. That is, it needs to > enumerate all the windows, find a specific pop-up, and press a button. > Wow, this sounds like an incredible hack i

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-22 Thread Steven James
---Original Message- > > From: [EMAIL PROTECTED] > > [mailto:python-win32-bounces+matherbe = > [EMAIL PROTECTED] > > On Behalf Of Tim Golden > > Sent: Wednesday, October 22, 2008 10:21 AM > > Cc: python-win32@python.org > > Subject: Re: [python-win32] Inte

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-22 Thread Matt Herbert (matherbe)
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > On Behalf Of Tim Golden > Sent: Wednesday, October 22, 2008 10:21 AM > Cc: python-win32@python.org > Subject: Re: [python-win32] Interacting with the desktop as a > service onVista >