Solved

Lock an application

Posted on 2003-11-20
4
253 Views
Last Modified: 2012-05-04
Hi,

I have a c# application that should do like a screensaver, in a way to lock the desktop if there's no activity for 5 min.

I alreday wrote the code to lock the application, but the problem is if i'm working on another window (like a IE window or word) i can't trap the mouse or the keyboard activity. Does anyone has an idea on how to do that ??

10x a lot
0
Comment
Question by:zwizeguyz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 22

Accepted Solution

by:
_TAD_ earned 25 total points
ID: 9790960


Yes, you need to use windows messaging (your are currently using application messaging).


For this you will need to use windows API


Here is a web site for monitoring windows messages...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/messagesandmessagequeues.asp


0
 
LVL 10

Assisted Solution

by:ptmcomp
ptmcomp earned 25 total points
ID: 9800134
Change the extension from .exe to .scr and install it as screensaver (if it has to be permanent)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question