Click here to Skip to main content
15,914,488 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I'm a C # program that I can switch on or off FN laptop to keep me.
Thanks
Posted
Updated 19-Oct-12 9:18am
v2

You can always switch it off. This is the simplest way I can tell:
C#
System.Diagnostics.Process.Start("shutdown", "/s");


Sorry, but if you think that some program can work on laptop when it is not even powered, to switch it on, you need some vacation, to recover.

—SA
 
Share this answer
 
v3
Comments
Sergey Alexandrovich Kryukov 19-Oct-12 17:58pm    
Thank you, Matt. :-)
--SA
In most laptops, the Fn key does not pass through the OS, so you probably won't be able to (it's entirely a hardware feature). If you don't have any additional software running to let you use Fn key shortcuts, then your laptop is likely one of those. And, as SA said, you can't make a program turn the computer on (you can use a program to wake from sleep and hibernate, but not from being powered off).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900