Jump to content

Recommended Posts

Posted (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 by Taylorsci
Posted

do a google search for AUTORUN

it has heaps of websites that will tell you what you need

How would i incorperate autorun into this script??

Any help would be greatly appreciated.

If @OSVersion <> "WIN_98" And @OSVersion <> "WIN_ME" Then

BlockInput(0)

EndIf

MsgBox(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, 52

MouseClickDrag("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)

Posted

Hendy, Helge any ideas?

you dont need to incorporate autorun into the script

you just put autorun in the root of the drive and when you plug it in it will run the script

if 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.

Posted (edited)

you dont need to incorporate autorun into the script

you just put autorun in the root of the drive and when you plug it in it will run the script

if 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 by Taylorsci
Posted

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.

Posted

Take a random cd from your collection at the desk.. put it in the computer... open the cd and find the file autotun.inf :whistle: 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

Posted

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?

Yet again i need help does anyone know a site that explanes it? Or does anyone have an example of an autorun program?

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
×
×
  • Create New...