CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2001
    Location
    San Diego CA
    Posts
    378

    Keep application running when computer locked

    How to run an application when the computer is locked. I want to perform system maintainence when the computer is locked.

    How can I set an application to keep processing even when the computer is locked.
    þ|êâšë rä†è rëþ|ïëš †hª† hë|þëd

  2. #2
    Join Date
    Jan 2007
    Posts
    65

    Re: Keep application running when computer locked

    is this relevant to visual c++ progamming?

  3. #3
    Join Date
    Sep 2004
    Posts
    1,361

    Re: Keep application running when computer locked

    He may think it is, but it is not.

    Applications do not quit / stop when you lock a computer.

  4. #4
    Join Date
    Apr 2001
    Location
    San Diego CA
    Posts
    378

    Re: Keep application running when computer locked

    No, it does not quit but it stops processing.

    Like if I want to search and backup a few files when the computer is locked. Or I want to run an automated test on an application when the PC is locked.

    Because I made a automation program that basically sends a series of keyboard and mouse events to the application I want to test. But the events stop processing when the computer is locked.
    þ|êâšë rä†è rëþ|ïëš †hª† hë|þëd

  5. #5
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Keep application running when computer locked

    Because I made a automation program that basically sends a series of keyboard and mouse events to the application I want to test
    OF Course, the KEYBOARD is locked. You need to use another mechanism for controlling your application.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  6. #6
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Keep application running when computer locked

    But the events stop processing when the computer is locked.
    Now you know what the 'lock' means

  7. #7
    Join Date
    Apr 2001
    Location
    San Diego CA
    Posts
    378

    Re: Keep application running when computer locked

    So the lock basically means keyboard and mouse is locked but not the running processes. So are all mouse messages and keyboard messages are also blocked? Like SendMessage(WM_LBUTTONCLICK) etc?

    Is there a way to get around this as I don't want anyone disturbing the automated test(The reason I want it locked).
    þ|êâšë rä†è rëþ|ïëš †hª† hë|þëd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured