Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

BUU

by BUU (Prior)
on Mar 26, 2002 at 03:32 UTC ( [id://154315]=user: print w/replies, xml ) Need Help??

<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);

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2024-03-19 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found