amdead Posted June 12, 2006 Posted June 12, 2006 I seen a guide to make your own Xmas light for pc, I need a small app to turn them on and off. Guide found at: Click Here or http://www.i-hacked.com/content/view/62/89/
Xenobiologist Posted June 12, 2006 Posted June 12, 2006 Hi, what's that? Is there a question or did you just want to show the link? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
amdead Posted June 12, 2006 Author Posted June 12, 2006 It was a question, i need to know how i would do it. Unless sould one as done it?
nfwu Posted June 13, 2006 Posted June 13, 2006 Step 1: Insert a transistor connected to the data out cable Step 2: Write a driver for the thingy that would send data to the data out cable, then stop sending data, then start sending data again! Just some ideas. #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
Xenobiologist Posted June 13, 2006 Posted June 13, 2006 Hi, next question. Do oyu want to disable USB during executing your script, or disable it generally? So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
taurus905 Posted June 13, 2006 Posted June 13, 2006 Hi,next question. Do oyu want to disable USB during executing your script, or disable it generally?So long,Megath.meger,I think what amdead wants to do is turn the usb port off and back on using a script in order to blink his Christmas lights in any pattern he likes.I too would be interested in knowing if this is possible with AutoIt.I think it would be rather easy to do in assembly, but I am not sure.taurus905 "Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs
ChrisL Posted June 13, 2006 Posted June 13, 2006 The only thing I know that can start stop restart USB is Devcon by MS you could script ithttp://support.microsoft.com/?kbid=311272 [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
Lazycat Posted June 13, 2006 Posted June 13, 2006 Here is info how to switch USB off:http://ask-leo.com/is_there_a_way_to_safel...batch_file.htmlHere is working link to neat deveject CLI utility that mentioned in link above.http://members.at.infoseek.co.jp/winpx/DevEject.zipBut likely enabling device back is not possible without reboot. At least I can't found any way to do that. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s])
amdead Posted June 13, 2006 Author Posted June 13, 2006 Thanks to all, I will have a go, am not to good at auto it. its just something where i can turn the lights on and off.
nfwu Posted June 14, 2006 Posted June 14, 2006 First, download devcon: http://support.microsoft.com/?kbid=311272Next, you have to find the device ID for the lights thingy.command from the console:devcon.exe status *Find the appropriate ID and copy it down somewhere safe.Okay, let's go through the program:while 1 ;;Run the command "devcon enable " & $deviceID Sleep(4000) ;;Run the command "devcon disable " & $deviceID Sleep(4000) wend#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode()
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