Kiesp Posted August 5, 2010 Share Posted August 5, 2010 Hello to everyone out there I had a brilliant (or so i think, atleast) last night when i couldnt sleep. I want to connect my laptop to a USB power strip (incase you dont know what im talking about, it's a power strip that only supplies power when it gets power from the USB cable connected to it) and then connect the USB cable to my laptop aswell, then i want to make a program that turns off the power to the usb port (or just disables it, in the device manager) which will be started when the battery power reaches 100% and then another program (or the same, maybe just with parameters or such) that turns the power on (or, again just enables it in the device manager) when the battery reaches like 5% So my question to you guys is. Is it possible, using autoit to disable or enable something in the device manager. Of cause this can be done via mouse and/or keyboard automatisation. But can it be done otherwise ? Thanks in advance Kiesp http://www.autoitscript.com/forum/index.php?showtopic=69911 <-- Best hacker ever :D Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 5, 2010 Share Posted August 5, 2010 This is crazy, do you want to kill your battery? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Zibit Posted August 5, 2010 Share Posted August 5, 2010 i dont think he wants to kill it. i mean what would be the point ? it's really unlikely that the battery did anything to piss him off or hurt him . jk xD @Topic am i dont know much about dll's but i know this, that there are certain DLL's used for automating Devices e.g Webcam. Creator Of Xtreme DevelopersPixel Pattern UDFTray GUI UDFMathssend & recive register scriptMouse Control via Webcam Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted August 5, 2010 Share Posted August 5, 2010 Batteries only last a certain amount of charges, so doing the above is going to shorten it's life dramatically, and "killing" it in no time compared to if you have treated it as you're supposed to. Even if I had some ideas for disabling usb, I would not go near that subject when there's the life of a innocent battery on stake. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Bert Posted August 5, 2010 Share Posted August 5, 2010 I see what he has in mind. I would think you could use MSDN to lookup how to access the hardware. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Jim Dandy Posted August 7, 2010 Share Posted August 7, 2010 I see what he has in mind. I would think you could use MSDN to lookup how to access the hardware.There's currently no native way to control hardware in AutoIt, but using Devcon.exe will do the trick. Link to comment Share on other sites More sharing options...
footswitch Posted October 1, 2010 Share Posted October 1, 2010 Sorry for the late reply, but AFAIK you can't "kill" the power from an USB port: it's electrically wired to the power supply. footswitch Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now