Solved

Lock an application

Posted on 2003-11-20
4
249 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
4 Comments
 
LVL 22

Accepted Solution

by:
_TAD_ earned 25 total points
Comment Utility


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
Comment Utility
Change the extension from .exe to .scr and install it as screensaver (if it has to be permanent)
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now