Taylorsci Posted March 15, 2007 Share Posted March 15, 2007 (edited) What are the command or commands to make my script autorun? Im trying to make a script on my flash drive autorun each time i plug it in. Thanks for any help How do i make it an autorun script? Edited March 15, 2007 by Taylorsci Link to comment Share on other sites More sharing options...
Shevilie Posted March 15, 2007 Share Posted March 15, 2007 autorun.inf - You cnat put it in the script itself Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Taylorsci Posted March 15, 2007 Author Share Posted March 15, 2007 autorun.inf- You cnat put it in the script itselfOk but how do i make it an autorun? Link to comment Share on other sites More sharing options...
skippynz Posted March 15, 2007 Share Posted March 15, 2007 Ok but how do i make it an autorun?do a google search for AUTORUNit has heaps of websites that will tell you what you need Link to comment Share on other sites More sharing options...
Taylorsci Posted March 15, 2007 Author Share Posted March 15, 2007 do a google search for AUTORUNit has heaps of websites that will tell you what you needHow would i incorperate autorun into this script??Any help would be greatly appreciated.If @OSVersion <> "WIN_98" And @OSVersion <> "WIN_ME" Then BlockInput(0)EndIfMsgBox(16, "Info", "Imput scedual click OK")BlockInput(1)MouseClick("left", 265, 100, 10)Run("Notepad.exe")WinWaitActive("Untitled - Notepad")Send("Imput scedual"); Left click drag from 151,50 to 505, 52MouseClickDrag("left", 151, 54, 505, 54, 20)MouseClick("left", 440, 23, 200)Send("Ok")MouseClick("left", 440, 23, 200)WinClose("Untitled - Notepad")WinWaitActive("Notepad", "The text in the Untitled file has changed")Send("!y")Run("Cmd.exe")WinWaitActive("C:\WINDOWS\system32\Cmd.exe")Send("Shutdown -s -t 20{ENTER}")BlockInput(0) Link to comment Share on other sites More sharing options...
Taylorsci Posted March 15, 2007 Author Share Posted March 15, 2007 Hendy, Helge any ideas? Link to comment Share on other sites More sharing options...
skippynz Posted March 15, 2007 Share Posted March 15, 2007 Hendy, Helge any ideas?you dont need to incorporate autorun into the scriptyou just put autorun in the root of the drive and when you plug it in it will run the scriptif you want certain condition to be met - ie on windows 2000 do something if windows xp do something else then you put those in your script at the start. Link to comment Share on other sites More sharing options...
Taylorsci Posted March 15, 2007 Author Share Posted March 15, 2007 (edited) you dont need to incorporate autorun into the scriptyou just put autorun in the root of the drive and when you plug it in it will run the scriptif you want certain condition to be met - ie on windows 2000 do something if windows xp do something else then you put those in your script at the start.Ok but what do i put into the script? Do i put the word autorun.exe at the top and bottom or what? And what do you mean by root? Edited March 15, 2007 by Taylorsci Link to comment Share on other sites More sharing options...
skippynz Posted March 15, 2007 Share Posted March 15, 2007 Ok but what do i put into the script? Do i put the word autorun.exe at the top and bottom or what?ZIP - ZERO - NOTHING - NUDDA just make your script and compile it - read the websites that google brings up and that will tell you what you need to do. Link to comment Share on other sites More sharing options...
Shevilie Posted March 15, 2007 Share Posted March 15, 2007 Take a random cd from your collection at the desk.. put it in the computer... open the cd and find the file autotun.inf The easy way to see what it does (Dont use music cd's or burned) Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit Link to comment Share on other sites More sharing options...
Taylorsci Posted March 15, 2007 Author Share Posted March 15, 2007 What are the command or commands to make my script autorun?Im trying to make a script on my flash drive autorun each time i plug it in.Thanks for any helpHow do i make it an autorun script?Yet again i need help does anyone know a site that explanes it? Or does anyone have an example of an autorun program? Link to comment Share on other sites More sharing options...
MHz Posted March 15, 2007 Share Posted March 15, 2007 Here is a program here to help to make a autorun.inf. 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