Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

miyagawa (1653)

miyagawa
  (email not shown publicly)
http://bulknews.vox.com/
AOL IM: bulknews (Add Buddy, Send Message)

Journal of miyagawa (1653)

Tuesday June 13, 2006
07:58 AM

hack ThinkPad shockmgr from Perl

[ #29890 ]

If anybody has ThinkPad with HDAPS support and ActivePerl installed, try this script.

The script goes in a loop to check if your ThinkPad laptop is moved, by opening its ShockMgr device with Perl. You need Win32API-File package to run the script (ppm install Win32API-File). That means, when you lean/move/smack your laptop, it says "MOVED!" on STDOUT. Very cool.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.