WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

DllCall Information

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Turn Off Monitor

 Keywords: SendMessage Hybernate Monitor OFF 

Question:

Please help me to have a Winbatch script to put monitor into standby mode to save energy. There are couple executable files such as nircmd.exe can do that. But I want use Winbatch. Thanks.

Answer:

Try this:
hDll = DllLoad(DirWindows(1):"User32.dll")
flag = DllCall(hDll,long:"SendMessageA",long:-1,long:274,long:61808,long:2)


Article ID:   W17797
Filename:   Turn Off Monitor.txt
File Created: 2010:01:29:15:05:56
Last Updated: 2010:01:29:15:05:56