Página 1 de 1

Apagar monitor

Publicado: 19 Abr 2009, 14:41
por osiris1001
Les dejo algo simple... para apagar el monitor...

Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Const WM_SYSCOMMAND = &H112&

Const SC_MONITORPOWER = &HF170&

Private Sub Form_Load()

SendMessage Me.hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, ByVal 2&

End Sub

Re: Apagar monitor

Publicado: 19 Abr 2009, 14:42
por shark0
Se agradece osiris

Re: Apagar monitor

Publicado: 20 Abr 2009, 21:34
por wasamandrapa
Interesante osiris1001, thank you.