ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: logout when monitor turns on

<< < (2/3) > >>

agentsteal:
I read that it can be done in XP with this:
http://msdn.microsoft.com/en-us/library/dd694527%28VS.85%29.aspx

but I have no idea how to implement it...

SingingBoyo:
@agentsteal Looks to me like thats video devices, such as webcams and possibly video cameras.  Possibly USB devices in general, but I doubt it works for monitors.

agentsteal:
I got that from here:
http://stackoverflow.com/questions/203355/is-there-any-way-to-detect-the-monitor-state-in-windows-on-or-off

SingingBoyo:
And it still appears that its almost impossible to do it reliably.  It's almost definitely monitor-dependent, and I don't think its something you can do as a small, simple program.  However, Win+L works great, and if you really want to log off, log off properly! (As Stoic Joker said, forced logoffs are great for losing data.  Its sort of like holding down the power button because you can't wait for the computer to turn itself off.)

agentsteal:
And it still appears that its almost impossible to do it reliably.  It's almost definitely monitor-dependent,
--- End quote ---
Could someone try making it anyway? I have multiple monitors I can try.

Win+L works great, and if you really want to log off, log off properly!
--- End quote ---
But I want to be able to keep the computer logged in to run a program after I leave but logged out when someone else wants to use it. Btw the computer can be forced to log off with the command "shutdown -l -f".

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version