Solved Lock desktop sound?

swiftie

Old git Member
Member
VIP
Local time
6:59 PM
Messages
149
Location
Hampshire, England
Whenever I unlock the desktop, I get a sound which seems to be "Windows Logon".
There doesn't seem to be a corresponding sound for when the desktop locks. There's a "Windows Logoff" action, but that doesn't sound when the desktop locks.

Perhaps Microsoft thought that no one would need a "Desktop locked" sound, as you'd be bound to know that it had just happened.

But my desktop lock is now managed by a Gkchain.com "Gatekeeper", which uses proximity detection. So, I don't lock my PC before walking away from it; Gatekeeper does that for me. But it would be nice if I had some audible notification as I wander off. As things stand, I walk away and have to glimpse back, to be sure it has locked.

Is there a way of getting a sound at "Desktop Locked" ?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I've been looking for something like this for years, thank you!

I've resorted to polling, looking for an active process running *.scr, but that was truly horrible!

I've been using scheduled tasks for decades, but never really looked into the triggers before. A whole vista of opportunities has just opened up for me!
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
I've been looking for something like this for years, thank you!

I've resorted to polling, looking for an active process running *.scr, but that was truly horrible!

I've been using scheduled tasks for decades, but never really looked into the triggers before. A whole vista of opportunities has just opened up for me!

If you think of it, please post back your experience after using the method you set up for a while. I have always avoided task scheduler. The UI is so busy. But there isn't much in the way of freeware to do things on a schedule any other way. So I might have to take the plunge myself. :)
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Having been shown how to use Scheduled Tasks (or whatever they are called these days, I'm aware they've been renamed), I now have a mechanism to run a program/script at desktop lock/unlock.

This is where I run into another function I've been looking for, for years...

Is there a way to turn the display power saving on and off from a script?

When my desktop locks, the scheduled task runs my script, and my script runs "Windows Logoff.scr". At this time, I'd also like to put my display into power saving mode.

When the descktop unlocks, I already get the sound of "Windows Logon.scr", but it would be really nice if there was a script that I could use to bring the display out of power-saving mode.
In the past I've used a script which moves the mouse cursor to location 0,0 on my display, then clicks right mouse button. This has the side effect of bringing the display out of power saving, but is a bit of a kludge (my apologies, Cindy, if you're reading this; your mouse program is great!)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
OK, here's how I'm getting on... famously!

The "scheduled tasks" work with triggers (rather than timed events) for "On desktop lock for any user" and "On desktop unlock for any user". I discovered the utility/command "nircmd.exe monitor async_on/async_off" which turns the display power on and off as appropriate. I also mute the sound when a lock event happens during my "overnight period" (22:00 to 06:00)

So my gkchain Gatekeeper locks and unlocks my desktop based on my proximity, and the Scheduled Tasks fire scripts which handle everything else.

I have one remaining niggle but I'll start a new thread for that as it's unrelated to sound or desktop locking.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Arbico/Quiet i7377
OS
Windows 7 Ultimate x64
CPU
3.40 gigahertz Intel Core i7-3770 Multi-core (4 total)
Motherboard
ASUSTeK COMPUTER INC. P8Z77-V LX Rev X.0x
Memory
16Gb
Graphics Card(s)
AMD Radeon HD 7700
Sound Card
AMD High Definition Audio Device
Monitor(s) Displays
Samsung 2443BW/Lenovo L2240pwD
Screen Resolution
1920x1200 1050x1680
Hard Drives
OCZ-VERTEX450 (256 GB)
ST31000524AS (1000.20 GB)
Drobo 5D 5-disk enclosure
Seagate USB 1Tb
ST1500DL 003-9VT16L 1500.30 GB
Case
Special noise-reducing case
Cooling
Quiet fans
Keyboard
Lenovo SK-8815 Multimedia keyboard
Mouse
Logitech MX
Internet Speed
~7mbps
Antivirus
Microsoft Security Essentials (and caution)
Browser
Chrome/Opera/Firefox/IE/Off-by-One
Other Info
Acoustic Energy AEGO-M Speakers - incredible sound, given their size.
NirSoft has many useful free utilities. Glad you got things configured.
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
Back
Top