Jump to content


 

Learning To Script with AutoIt V3


105 replies to this topic

#1 BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • AutoIt MVPs (MVP)
  • 7,662 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 25 November 2008 - 08:06 AM

Learning To Script with AutoIt V3


Document was last updated 17 February 2010


This document is for you if you are interested in learning to script with AutoIt. Where possible, I will try to assume that you have no prior coding experience and I aim to teach you some good general coding habits, which will be beneficial should you decide to move on to other languages.



Download here
Attached File  Learning to Script with AutoIt V3 (Last Updated 17 Feb 2010).zip   883.52K   30927 downloads(Previous Versions = 10152)
The download contains the tutorial, example AU3 files contained in the text, printable exercise question/answer sheet and more.

If you encounter any issues, with the text, please post them, but this is not a thread for requsting help or requesting scripts. Please do not PM me either. We have this wonderful support forum, so use it! :)


Original Document: Alex Peters (LxP)
http://yallara.cs.rmit.edu.au/~apeters/

Updated By: Brett Francis (BrettF)
http://signa5.com

Edited by BrettF, 17 February 2010 - 05:03 AM.




#2 GEOSoft

    Sure I'm senile. What's your excuse?

  • AutoIt MVPs (MVP)
  • 10,408 posts
  • Gender:Not Telling
  • Location:Nanaimo, BC, Canada

Posted 25 November 2008 - 08:13 AM

'Tis a fine job you've done M8.
Guess I'll download the update tomorrow (November 25) :D
George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.
Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.

*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my
Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Growing old is obligatory - growing up is entirely voluntary!"
- Melba23

#3 Archer

    Member

  • Full Members
  • Pip
  • 23 posts

Posted 25 November 2008 - 08:14 AM

Sorry I cannot dowload the PDF.
--------------------------------------------------------------------------------
Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.

#4 Archer

    Member

  • Full Members
  • Pip
  • 23 posts

Posted 25 November 2008 - 08:15 AM

View PostArcher, on Nov 25 2008, 03:14 PM, said:

Sorry I cannot dowload the PDF.
--------------------------------------------------------------------------------
Sorry, an error occurred. If you are unsure on how to use a feature, or don't know why you got this error message, try looking through the help files for more information.

After I replied this topic, I could download it.
Thanks. :)

#5 BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • AutoIt MVPs (MVP)
  • 7,662 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 25 November 2008 - 08:16 AM

Sorry guys. Uploaded the PDF instead of the full .zip file. Also please note there is a link to a video on installing. I've done the video to an okay standard, but I still need to upload it- which it doesn't seem to want to do. So all you will see at the link is a sample video... Hopefully the whole system I have implemented will be finished in the next few days. :)

Cheers,

Brett

EDIT: Video is uploaded... :) Preview image still to come.

Edited by BrettF, 25 November 2008 - 09:04 AM.


#6 ken82m

    Mass Spammer!

  • Full Members
  • PipPipPipPipPip
  • 621 posts
  • Location:New York, NY/Atlanta, GA

Posted 25 November 2008 - 08:24 AM

Nice work :)
My Contributions
PC Builders Console - Secure PDF Creator - Cisco VPN Installer
MS DNS Server Backup Script - MS DHCP Backup Script
IT Admin Console - Toggle Admin Mode - MyMovies-Add Discs Script
IT Help Desk and System Information Tool
Set On Lid Close Power Option - Streaming Media Server & Website



”I believe that when we leave a place, part of it goes with us and part of us remains... Go anywhere, when it is quiet, and just listen.. After a while, you will hear the echoes of all our conversations, every thought and word we've exchanged.... Long after we are gone our voices will linger in these walls for as long as this place remains.”

#7 BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • AutoIt MVPs (MVP)
  • 7,662 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 25 November 2008 - 09:24 AM

Video uploaded. I lied about the quality. Its pretty bad when I look at it... Hahahahha.

I will play around with settings and such to get a nicer quality video working... ;)

Basically its a small proof of like concept.

#8 987learner

    Member

  • Full Members
  • Pip
  • 29 posts

Posted 25 November 2008 - 12:16 PM

Thanks for sharing this. It is more in details & more examples than the help file. :)

#9 BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • AutoIt MVPs (MVP)
  • 7,662 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 25 November 2008 - 12:24 PM

Impossible to have more examples than the helpfile! There are around 2000 different examples and the helpfile has way more detail! I just exaplain it differentl...!

Thanks for your support though :)

#10 987learner

    Member

  • Full Members
  • Pip
  • 29 posts

Posted 25 November 2008 - 01:37 PM

View PostBrettF, on Nov 25 2008, 07:24 PM, said:

Impossible to have more examples than the helpfile!

:lol: Don't fret. I'm not expecting more help files or examples. Since u explain it differently..., it is all that matters.
Nice PDF. I can print & read leisurely on the bus now...

#11 November

    Learnig AutoIT everyday...

  • Full Members
  • PipPipPipPip
  • 435 posts
  • Gender:Male
  • Location:Lisbon - Portugal

Posted 25 November 2008 - 01:56 PM

Nice work Brett,

I really like it.
Easy, smooth and fast learning.
Step by step well done and incremented difficulty!

A great startup manual for AutoIT!
I Recommend it for new scripters!

Keep the good work :)
Cheers
Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited. *** UPDATED ***
Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.
ShootIT 1.0 - Screen Capture full and partial screen

Common sense isn't that common after all.

#12 BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • AutoIt MVPs (MVP)
  • 7,662 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 27 November 2008 - 01:16 PM

How is it? Any comments?

Cheers,

Brett

#13 Zedna

    AutoIt rulez!

  • AutoIt MVPs (MVP)
  • 7,963 posts
  • Gender:Male
  • Location:Czech republic

Posted 27 November 2008 - 04:40 PM

Hey man  GREAT job for beginners!!!  :thumbsup:

I think this could be mentioned on main AutoIt's download page.

---

At top of PDF file is little mistake about AutoIt version:

Quote

Learning to Script with AutoIt V3
Document last updated 25 November 2008
AutoIt Version 3.12.2.1



Should be

Quote

AutoIt Version 3.2.12.1


#14 martin

    ~~\o/~~~/0\=¬''~~~

  • AutoIt MVPs (MVP)
  • 7,157 posts
  • Location:uk

Posted 27 November 2008 - 05:30 PM

This is great BrettF!. Heroic work.
Serial port communications UDF Includes functions for binary transmission and reception.
printing UDF Useful for graphs, forms, labels, reports etc.
Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.
Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.
UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

#15 BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • AutoIt MVPs (MVP)
  • 7,662 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 27 November 2008 - 10:04 PM

View PostZedna, on Nov 28 2008, 01:40 AM, said:

Hey man GREAT job for beginners!!! :thumbsup:

I think this could be mentioned on main AutoIt's download page.

---

At top of PDF file is little mistake about AutoIt version:





Should be
Woops! Thanks. Will update it soon :)

View Postmartin, on Nov 28 2008, 02:30 AM, said:

This is great BrettF!. Heroic work.
Thanks!

#16 TehWhale

    Whalee..

  • Banned
  • 1,482 posts
  • Location:USA!!!!!!!!

Posted 27 November 2008 - 10:13 PM

Dude brett, this is amazing! It is so detailed, and its printable, along with exercises and even a "worksheet"!

AWESOMEE!!!

#17 bo8ster

    Mass Spammer!

  • Full Members
  • PipPipPipPipPipPip
  • 1,189 posts
  • Gender:Male
  • Location:Adelaide, Australia

Posted 28 November 2008 - 06:00 AM

Thanks for that. Its great to be using a tool that has such great support.
Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)
Brett F's Learning To Script with AutoIt V3
Valuater's AutoIt 1-2-3, Class... is now in Session
Contribution: Get SVN Rev Number, Control Handle under mouse, A Presentation using AutoIt, Log ConsoleWrite output in Scite

#18 Andreik

    Bishop

  • Full Members
  • PipPipPipPipPipPipPip
  • 2,296 posts
  • Gender:Male
  • Location:Romania

Posted 28 November 2008 - 09:36 AM

Nice work BrettF.
It will be very useful your tutorial for many people. :graduated:
When the words fail... music speaks

#19 dbzfanatic

    functional psychopath!!

  • Full Members
  • PipPipPipPipPipPip
  • 1,084 posts
  • Gender:Male
  • Location:dev/null

Posted 28 November 2008 - 11:03 AM

This looks awesome Brett. When I saw "Simple Notepad" though I thought you were going to show how to make something like notepad, not automate it :P. I haven't had time to go through the PDF yet (it's 4am here) but if you want to show something like a notepad you could use my STE tutorial. Almost every line is commented to show what's going on. It's a mid-range tutorial, at least that's how I see it. It makes people think a bit about what they could add and how things work but it also gives a good solid base. Perhaps you could incorporate tutorials such as yours, Valuater's 1-2-3 class, and other tutorials like AlmarM's and my own into something like a tutorial CD? That way you would have tutorials, code examples, step-by-step help, and combinations of those in one location ^_^.

Eidt: Going through the Exercises pdf I noticed that you have "1,2,4,4" a lot instead of "1,2,3,4". I'll post anything else I find ^_^.

Edited by dbzfanatic, 28 November 2008 - 11:30 AM.


#20 BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • AutoIt MVPs (MVP)
  • 7,662 posts
  • Gender:Male
  • Location:Brisbane, Australia

Posted 28 November 2008 - 01:18 PM

Thanks!

@dbzfanatic- I might acutally do a simple notepad, because it does use everything that has been done before in the script. Sounds like a plane (vrrooom) plan :D

I have thought about a CD, but I think we need some more tutorials to shove in there for it to be truely perfect... ;)

I will fix the excerices pdf too. The PDF maker I used also skipped some of them in the book marks of the main file too... :S

EDIT: Typo and I almost did the same typo. Hahahahha :lmao:

Edited by BrettF, 28 November 2008 - 01:29 PM.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users