User since: Mar 26, 2002 at 03:32 UTC
Last here: Apr 16, 2014 at 14:41 UTC (15 weeks ago)
Experience: 9735
Level: Prior (17)
Writeups: 1581
Location:n/a
User's localtime: Jul 29, 2014 at 08:42 GMT+11
Scratchpad: View
For this user:Search nodes

<3 wassercraaaaretats


l33t monitor code from coruscate

#!c:/perl/bin/perl -w $|++; use strict; use Win32::API; sub MONITOR_ON () { -1 } sub MONITOR_STANDBY () { 1 } sub MONITOR_OFF () { 2 } Win32::API->Import('user32', 'SendMessageA', 'NNNN', 'N'); Win32::API->Import('user32', 'FindWindowA', 'PP', 'N'); my $hwnd = FindWindowA('Shell_TrayWnd', 0); SendMessageA($hwnd, 0x112, 0xF170, MONITOR_STANDBY); sleep 6; SendMessageA($hwnd, 0x112, 0xF170, MONITOR_OFF); sleep 6; SendMessageA($hwnd, 0x112, 0xF170, MONITOR_ON);
[download]