Hm. That looks like what I need, but I don't have a copy of VB. :( Would anyone be willing to write me a small app that does this or find a pre-made one?
Main Topics
Browse All TopicsI want to have an application run in the background whenever I "lock workstation". I don't want to bind a shortcut key to a batch file to lock the workstation and launch the program, I want it to launch when the workstation is locked from any source. This can be a service or a program running in the background watching for the user to lock the workstation, or possibly a setting in the registry I don't know about. This is fairly urgent, so I'd like a soloution ASAP.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I am working one right now. I was trying to make it a service but it doesn't work the way I wanted to. This is going to be very basic and a bit crude. It will use the registry to house which program you want to run and the only configurable part will be to set which program you want to run. There will be an icon that sits in the tray.
And the only way to end it will be to kill it using the task manager.
Ok here is a beta version.
To run it at startup place in the startup folder or use the or
HKEY_CURRENT_USER\Software
HKEY_LOCAL_MACHINE\Softwar
To to tell it which program to run right click on the Tray Icon and select Configure
This is the registry key that it uses
HKEY_CURRENT_USER\Software
Programs
http://www.geocities.com/e
scroll down near the bottom to
Run App When Computer Locked
and click on it.
Ok sounds like a good idea. It is currently set at 30 seconds so as if somebody does ctrl-alt-del it appears to the program that the computer is locked but the user just might be wanting to get to the task manager instead. However it makes sense to make this configurable so I should have something in the next few hours an no later than this time tommorrow.
By the way I have three other utilities I have put together on that page so if you have time take a look at them and see what you think about them I would aprecaite it. If you don't want to or don't have the time then I understand. But if you know anybody that may find them useful then let them know about the utilities, they are all free. :>)
Registry Backup
Flip Startup Items
Shutdown/Restart
Ok I fixed it so one can set the delay in seconds to the way they would like. Min is 5 seconds Max is 300 seconds the Default is 15 seconds.
When you open the configuration window I think it will be obvious how to set the delay. Eventually I will refine the whole thing and tidy it up a bit and when I do I will post here and/or you can periodically check the web page for updates. I will put a date and/or version number by the link so you can tell if there is an update.
Business Accounts
Answer for Membership
by: sathishkumar_sriPosted on 2003-03-19 at 18:15:43ID: 8171190
What you have said cannot be done using just the features of Windows XP itself. However you can write a small program in Visual Basic using the Windows API to check if the workstation is locked and then run the required program/process. I was facing the same problem sometime back and found the following article useful:
chtips/nt_ pro/10_min ute_soluti ons/ 10minN T0701.asp
http://gethelp.devx.com/te
Hope this helps you!