Sign in to follow this  
Followers 0
Smidge146

How could I make this better?

4 posts in this topic

I just started doing autoit and this is what I made, so how can I make it better?

and where can I get good tutorials?

CODE
$name = inputbox ("Name", "Type your name please")

$age = inputbox ("Age", "Type in your age")

$email = inputbox ("Email", "Type in your email")

$gender = inputbox ("Gender", "what gender are you?")

run ("notepad.exe")

Sleep (1000)

Send ("your name is ")

Send ($name)

Send ("{enter}")

send ("you are ")

Send ($age )

Send (" Years old")

Send ("{enter}")

Send ("Your email is ")

Send ($email)

Send ("{enter}")

Send ("You are ")

Send ($gender)

Share this post


Link to post
Share on other sites



I just started doing autoit and this is what I made, so how can I make it better?

and where can I get good tutorials?

CODE
$name = inputbox ("Name", "Type your name please")

$age = inputbox ("Age", "Type in your age")

$email = inputbox ("Email", "Type in your email")

$gender = inputbox ("Gender", "what gender are you?")

run ("notepad.exe")

Sleep (1000)

Send ("your name is ")

Send ($name)

Send ("{enter}")

send ("you are ")

Send ($age )

Send (" Years old")

Send ("{enter}")

Send ("Your email is ")

Send ($email)

Send ("{enter}")

Send ("You are ")

Send ($gender)

What really helped me a few years ago when I started AutoIt was looking through the Example Script section of the forums. There you are going to find hundreds of thousands of lines of code from the most complex to the very simple.

If you are looking to make this program a bit more interesting try using the msgbox() function. You can find information on this function in the help files of the SciTe script editor (available on the AutoIt download page)

Good luck, and welcome.

Share this post


Link to post
Share on other sites

...and where can I get good tutorials?

There are a couple of short tutorials in the help file. Almost every function listed in the help file has a demo script with it. There is also Valuater's AutoIt 1-2-3 tutorial program linked in my sig.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Even if you never read program help files, make this the one time you do read the help file. It is pretty much the end-all source of information regarding Autoit.

And if I make a suggestion, if you do follow the tutorials in the help file, don't copy and paste them. Type them out. It gives you a good feel for the language.

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