langsung aja & pake bertele2
Code :
Option Explicit
Private Const MONITOR_ON = -1&
Private Const MONITOR_LOWPOWER = 1&
Private Const MONITOR_OFF = 2&
Private Const SC_MONITORPOWER = &HF170&
Private Const WM_SYSCOMMAND = &H112
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
Private Sub Form_Load()
Command1.Caption = "Turn off monitors"
End Sub
Private Sub Command1_Click()
Call SendMessage(Me.hWnd, WM_SYSCOMMAND, _
SC_MONITORPOWER, ByVal MONITOR_OFF)
With Timer1
.Interval = 8000
.Enabled = True
End With
End Sub
Private Sub Timer1_Timer()
Timer1.Enabled = False
Call SendMessage(Me.hWnd, WM_SYSCOMMAND, _
SC_MONITORPOWER, ByVal MONITOR_ON)
End Sub
About Me
Blog Archive
-
▼
2009
(99)
-
▼
Mei
(21)
- Menghentikan Timer Saat Download Di 4Shared
- The Lord of the Rings: Conquest 2009 [D-Links]
- bikin pdf pake php
- Lirik Saykoji DI bajak ama MalaYSiaNG
- Membuat Blog Lebih Gaul
- Garuda di Dadaku
- Source VB (just share)
- No Copy/Cut ke Flashdisk dari Kompie Anda (TANPA S...
- Archive for the ‘proxy tutorial’ Category
- Pasang Proxy Ala R3B3L
- Static IP addressing
- Wireless security
- PR di saat menunggu hasil pengumuman sekolah
- cara membuat virus ala R3B3L
- Kalau ada pertanyaan tentang apa sih arti seorang ...
- arti cinta sesungguh nya
- Tutorial SQL 2009
- hears greeting from lucifer courier:my name is reb...
- Cara tahu website joomla?
- Daftar situs-situs web Boot dan Anti Boot Yahoo Me...
- Rahasia Memahami Hati Cewek
-
▼
Mei
(21)
0 comments:
Posting Komentar