YoseMite Posted October 8, 2005 Share Posted October 8, 2005 Hi,I have this fan for my laptop.This use the 5volt of the USB2.0 port.Now I want make a application with a button start and button stop.If I press stop, the fan must stop, and if I press start the fan must start! But is this possible to make this with AutoITscript? Greetz,YoseMite Link to comment Share on other sites More sharing options...
realkiller Posted October 8, 2005 Share Posted October 8, 2005 i think not it is olmost inpossible in c++ Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
/dev/null Posted October 8, 2005 Share Posted October 8, 2005 Now I want make a application with a button start and button stop.If I press stop, the fan must stop, and if I press start the fan must start! But is this possible to make this with AutoITscript? well, you can disable a usb host controller with windows device manager. This will also shut down the power supply for that port. If that works, you'll "just" have to figure out how to do it with AutoIT CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
this-is-me Posted October 8, 2005 Share Posted October 8, 2005 If disabling the host controller will cut power, then you can use the command line "devcon.exe disable [device parameters]" to disable from batch or autoit. Who else would I be? Link to comment Share on other sites More sharing options...
/dev/null Posted October 9, 2005 Share Posted October 9, 2005 If disabling the host controller will cut power, then you can use the command line "devcon.exe disable [device parameters]" to disable from batch or autoit.Very nice! A real "must have" tool.I tested it, and it disables the USB port where my mouse is plugged in. HOWEVER, it does not shut down the power supply! So, unfortunately it is no help for the fan problem and I'm not even sure if it would be possible to shut down the power supply. @YoseMite: Try to google for that...CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
YoseMite Posted October 9, 2005 Author Share Posted October 9, 2005 Thanks for the comment. I'm searching... Link to comment Share on other sites More sharing options...
Westi Posted October 9, 2005 Share Posted October 9, 2005 If it is listed you can use RUNDLL32 SHELL32.DLL,Control_RunDLL hotplug.dlland disable it with a script.Maybe try deveject.exe from german c't magazine Usage: deveject.exe -EjectDrive:<Drive>|-EjectName:<Name>|-EjectId:<DeviceId> [-v] [-Debug] 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