Sign in to follow this  
Followers 0
Taylorsci

How do i make a script autorun using AutoIt3?

12 posts in this topic

#1 ·  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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

autorun.inf

- You cnat put it in the script itself

Ok but how do i make it an autorun?

Share this post


Link to post
Share on other sites

Ok but how do i make it an autorun?

do a google search for AUTORUN

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

Hendy, Helge any ideas?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#8 ·  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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Here is a program here to help to make a autorun.inf.

:whistle:

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0