My requirement is to create a small application which can turn off the monitor when I press the screen lock key combination (Windows +L). This application should also turn off the machine when the screen saver is activated. It should activate the monitor again when we press any key or when I move my mouse. I am a newbie into the coding and I dont know how to do this. If you could help me to progress, it will be really helpful.

I can deploy this application to 3 of My PCs and can turn off monitors to save power.