10-14-2011، 03:14 PM
با سورس زیر میتونید مانتیور رو خاموش کنید.
کد:
'www.parsicoders.com
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Any) As Long
Const SC_MONITORPOWER = &HF170&
Const MON_OFF = 2&
Const WM_SYSCOMMAND = &H112
Private Sub procTurnOff()
SendMessage Me.hWnd, WM_SYSCOMMAND, SC_MONITORPOWER, MON_OFF
End Sub
Private Sub Form_Load()
procTurnOff 'Turn Off Monitor
End Sub