Jump to content

Enabling/disabling hardware ?


 Share

Recommended Posts

Hello to everyone out there :blink:

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

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 :blink: .

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.

Link to comment
Share on other sites

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. :blink:

Link to comment
Share on other sites

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...