I have an all-in-one pc. How do I turn off my monitor while being able to move my mouse and press my keyboard without turning it back on?

It's not a gaming computer so why are you asking in the gaming forum?
because I am doing this for a game. I want to run an autoIT script in the game while I sleep. If I am able to turn off my monitor, I could save power.
