Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #72482

Re: Lock Windows Screen GUI using python

X-Received by 10.236.203.113 with SMTP id e77mr13593673yho.15.1401777619177; Mon, 02 Jun 2014 23:40:19 -0700 (PDT)
X-Received by 10.182.34.161 with SMTP id a1mr211118obj.5.1401777618991; Mon, 02 Jun 2014 23:40:18 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!j5no717157qaq.1!news-out.google.com!gi6ni19612igc.0!nntp.google.com!hl10no8934916igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.python
Date Mon, 2 Jun 2014 23:40:18 -0700 (PDT)
In-Reply-To <mailman.10590.1401772221.18130.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=203.196.206.155; posting-account=J6n4uAoAAAAlX-smYKrsVK1uNuUZNLo9
NNTP-Posting-Host 203.196.206.155
References <0d04724b-d800-407f-9614-1a86c4a58769@googlegroups.com> <mailman.10590.1401772221.18130.python-list@python.org>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <a0ff3687-7d33-4748-8666-359a694cacd4@googlegroups.com> (permalink)
Subject Re: Lock Windows Screen GUI using python
From Jaydeep Patil <patil.jay2009@gmail.com>
Injection-Date Tue, 03 Jun 2014 06:40:19 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.python:72482

Show key headers only | View raw


On Tuesday, 3 June 2014 10:39:31 UTC+5:30, Ian  wrote:
> On Mon, Jun 2, 2014 at 10:28 PM, Jaydeep Patil <patil.jay2009@gmail.com> wrote:
> 
> > Dear all,
> 
> > Can we Lock Windows Screen GUI till program runs & unlock screen GUI when program finishes?
> 
> 
> 
> If you mean can you programmatically bring up the Windows lock screen,
> 
> then you can do this:
> 
> 
> 
> import ctypes
> 
> ctypes.windll.user32.LockWorkStation()
> 
> 
> 
> The only way to unlock it is for the user to log in.
> 
> 
> 
> If you mean something else, you'll have to be more specific.

Hi Lan,

Currently I am doing some automation in python excel. It read the data & plots number of graphs. It took more than 20 minutes. So while running my python program if user clicks on excel, error came.

So just i want to lock GUI not workstation.

I hope you understand this.

Let me know if you have any idea about it.


Regards
Jaydeep Patil

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Lock Windows Screen GUI using python Jaydeep Patil <patil.jay2009@gmail.com> - 2014-06-02 21:28 -0700
  Re: Lock Windows Screen GUI using python Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-02 23:09 -0600
    Re: Lock Windows Screen GUI using python Jaydeep Patil <patil.jay2009@gmail.com> - 2014-06-02 23:40 -0700
      Re: Lock Windows Screen GUI using python Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-03 01:09 -0600
        Re: Lock Windows Screen GUI using python Jaydeep Patil <patil.jay2009@gmail.com> - 2014-06-03 00:53 -0700
          Re: Lock Windows Screen GUI using python Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-06-03 09:05 +0100
          Re: Lock Windows Screen GUI using python Chris Angelico <rosuav@gmail.com> - 2014-06-03 19:11 +1000
          Re: Lock Windows Screen GUI using python Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-03 09:27 -0600
            Re: Lock Windows Screen GUI using python Jaydeep Patil <patil.jay2009@gmail.com> - 2014-06-03 20:55 -0700
              Re: Lock Windows Screen GUI using python Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-03 22:58 -0600
                Re: Lock Windows Screen GUI using python Jaydeep Patil <patil.jay2009@gmail.com> - 2014-06-03 22:44 -0700
                Re: Lock Windows Screen GUI using python Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-04 00:02 -0600
              Re: Lock Windows Screen GUI using python Chris Angelico <rosuav@gmail.com> - 2014-06-04 21:21 +1000
              Re: Lock Windows Screen GUI using python Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-06-04 22:04 -0400

csiph-web