Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Learning to Script with AutoIt 3


  • Please log in to reply
127 replies to this topic

#1 LxP

LxP

    Real satisfaction in every glass.

  • Active Members
  • PipPipPipPipPipPip
  • 1,621 posts

Posted 24 December 2005 - 11:12 AM

Latest version: February 13, 2006

After seeing a few requests on the forums for help learning how to use AutoIt (and after receiving a few PMs too) I decided to start working on a document that tries to teach this. All feedback is highly encouraged.

This document is for you if you are interested in learning to script with AutoIt, as the title implies. It tries to assume no prior coding experience and it aims to teach some good general coding habits as well, which will be beneficial should you decide to move on to other languages.

This document is nowhere near complete -- I need feedback in order to come close. What do you feel needs more or better explanation? Have I failed to cover something adequately or perhaps even at all?

Attached File  script_with_autoit.pdf   150.44KB   16764 downloads.....(Previous versions had 124 + 1037 = 1161 downloads)

If you have trouble viewing the PDF in your browser, please first download it by right-clicking the link and selecting Save Link As... or similar and then launch it separately from your browser.

Edited by LxP, 13 February 2006 - 07:56 AM.








#2 BigDod

BigDod

    The Mayor of Mirth

  • Jokers
  • 8,495 posts

Posted 24 December 2005 - 11:31 AM

A very worthwhile project and well worth continuing.

Keep up the good work. :P

Edit
You could be heading for another "sticky" with this.

Edited by BigDod, 24 December 2005 - 11:34 AM.

Time you enjoyed wasting is not wasted time ......T.S. Elliot

Suspense is worse than disappointment................Robert Burns

God help the man who won't help himself, because no-one else will...........My Grandmother

Get Beta versions Here Get latest SciTE editor HereAutoIt 1-2-3 by Valuater - A great starting point.BigDod2.gifbd1.png


#3 TWC

TWC

    Seeker

  • Active Members
  • 25 posts

Posted 24 December 2005 - 11:38 AM

Very good!!!

Please continue...

#4 Jos

Jos

    oh joy ...

  • Developers
  • 22,535 posts

Posted 24 December 2005 - 12:39 PM

Looks very nice... :P

Visit the SciTE4AutoIt3 Download page for the latest versions                                                                 Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)


#5 Shinies

Shinies

    Adventurer

  • Active Members
  • PipPip
  • 100 posts

Posted 24 December 2005 - 01:30 PM

Another tutorial is highly need as there are only 2 with the help file. Keep it up, this could help alot of new AutoIt scripters.

#6 simple

simple

    Seeker

  • Active Members
  • 7 posts

Posted 24 December 2005 - 01:59 PM

Hi all,

After seeing a few requests on the forums for help learning how to use AutoIt (and after receiving a few PMs too) I decided to start working on a document that tries to teach this. I don't consider it anywhere near complete yet but the time of year for giving is now -- not later!


Please feel free to offer any feedback that you wish. Is it worth continuing? Have I said something stupidly wrong anywhere?

Season's greetings to all!


I could learn somthing off this but I got a problem opening the file :P
The error came up showing

There was an error opening this document. The filename, directory name, or volume lable syntax is incorrect.

i used Adobe Acrobat 7.0 Professional

#7 DaveF

DaveF

    Smells fanboyish.

  • Developers
  • 640 posts

Posted 24 December 2005 - 02:15 PM

Acrobat Reader crashed when I tried to open it.

Acro Reader 6.0.0
Firefox 1.0.7
Configured to read in browser
Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

#8 herewasplato

herewasplato

    Most Senile Poster

  • Active Members
  • PipPipPipPipPipPip
  • 4,426 posts

Posted 24 December 2005 - 04:04 PM

Great - keep up the good work.
(Sent you a PM about some minor points.)


No problem opening the PDF inside IE6 on XP(SP2)
Adobe Acrobat 7.0.5 Professional

Also no problem: right-click on PDF link, Save Target As, "Save As" to local HD...
..

#9 LxP

LxP

    Real satisfaction in every glass.

  • Active Members
  • PipPipPipPipPipPip
  • 1,621 posts

Posted 26 December 2005 - 02:04 AM

Thanks for the responses. I'm sorry to hear that some of you are having trouble opening the file:

There was an error opening this document. The filename, directory name, or volume lable syntax is incorrect.

Acrobat Reader crashed when I tried to open it.
ยทยทยท
Configured to read in browser

The only advice I can offer is to try saving the file via this separate download link (removed) and opening it separately from your web browser.

Due to the way my typesetting software works (at least by default), running example code copied directly from the document containing apostrophes will cause an AutoIt error. I'll see what I can do about that.

Are there any other issues with what I've currently written?

Edit: Separate download link removed. Please refer to the initial post.

Edited by LxP, 27 December 2005 - 10:35 AM.


#10 big_daddy

big_daddy

  • Moderators
  • 2,591 posts

Posted 26 December 2005 - 03:22 AM

It's looking really good so far LxP, sure wish I had this my first month of learning AutoIT. Keep working on it and I think it will really help new scripters.

#11 w0uter

w0uter

    resreveR nA

  • Active Members
  • PipPipPipPipPipPip
  • 2,262 posts

Posted 26 December 2005 - 06:03 PM

no problem Firefox 1.5 w/ Adobe Acrobat 7.0 Professional

kinda hijacking this thread but would anyone be intrested in a dllcalling tutorial ?
(problly rangeing from a command that takes no parameters to full blown structures)

Edited by w0uter, 26 December 2005 - 06:04 PM.

My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll

#12 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,730 posts

Posted 26 December 2005 - 07:58 PM

no problem Firefox 1.5 w/ Adobe Acrobat 7.0 Professional

kinda hijacking this thread but would anyone be intrested in a dllcalling tutorial ?
(problly rangeing from a command that takes no parameters to full blown structures)


Sounds like something that could/would be neatly integrated with LxP's idea... I'm all for it personally.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.


#13 1hit

1hit

    Seeker

  • Active Members
  • 22 posts

Posted 26 December 2005 - 08:21 PM

it looks pretty good u should continue it ,then i can figure out how to script lol

#14 pecloe

pecloe

    Polymath

  • Active Members
  • PipPipPipPip
  • 202 posts

Posted 26 December 2005 - 10:56 PM

Alex
Great idea, need any help ?
Phil

#15 LxP

LxP

    Real satisfaction in every glass.

  • Active Members
  • PipPipPipPipPipPip
  • 1,621 posts

Posted 27 December 2005 - 10:32 AM

<{POST_SNAPBACK}> Update: December 27, 2005
  • Code can now be pasted into scripts without causing errors.
  • Rewrote the section on how to enter string values into a script.
  • Improved the Values exercises.
  • Added information on optional parameters to the Functions section.
  • Added an Example function calls subsection.
  • Added a Functions exercise.
  • Added solutions for all exercises.
When everyone's happy with the sections that are currently written, I'll start on the next one: Variables. Thanks again for the feedback so far and all feedback continues to be welcome.

Great idea, need any help ?

I'd love to hear if there are any errors in what I've written, if something isn't explained sufficiently or how the exercises may be improved (e.g. are there better questions to be asked?).

Edit: Added link to top post (where the update is available).

Edited by LxP, 27 December 2005 - 10:47 AM.


#16 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,730 posts

Posted 27 December 2005 - 02:53 PM

This would be a great 'Sticky' Topic until it's complete IMHO.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.


#17 BigDod

BigDod

    The Mayor of Mirth

  • Jokers
  • 8,495 posts

Posted 27 December 2005 - 02:59 PM

This would be a great 'Sticky' Topic until it's complete IMHO.

I agree, even after it is completed as well.

Keep up the good work LxP :P

Time you enjoyed wasting is not wasted time ......T.S. Elliot

Suspense is worse than disappointment................Robert Burns

God help the man who won't help himself, because no-one else will...........My Grandmother

Get Beta versions Here Get latest SciTE editor HereAutoIt 1-2-3 by Valuater - A great starting point.BigDod2.gifbd1.png


#18 seandisanti

seandisanti

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 2,927 posts

Posted 27 December 2005 - 09:57 PM

Latest version: December 27, 2005

After seeing a few requests on the forums for help learning how to use AutoIt (and after receiving a few PMs too) I decided to start working on a document that tries to teach this. All feedback is highly encouraged.
.....(The previous version had 124 downloads)

If you have trouble viewing the PDF in your browser, please first download it by right-clicking the link and selecting Save Link As... or similar and then launch it separately from your browser.

haha. good job man, you beat me to it. i've actually been working on something very similar, but didn't want to say anything about it until i was satisfied with what i had. Now i'll have to think of something else to kill time at work between posts...
1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

#19 jpm

jpm

    a Real GUI/debug lover

  • Developers
  • 9,550 posts

Posted 28 December 2005 - 08:14 AM

Good teacher,

I don't know if you have the intention to document the returns of a function perhaps not the byRef.

I think instead of underlining the good way as for '' it could be better to paint it ''. (sorry I don't know how to paint the backgound with the forum tools)

Follow your very good job :P

Edited by jpm, 28 December 2005 - 08:17 AM.


#20 BigDod

BigDod

    The Mayor of Mirth

  • Jokers
  • 8,495 posts

Posted 30 December 2005 - 09:52 AM

I still think this is a great project.

I am really just trying to keep it on the first page so people see it.

Almost as good as being a sticky.

Time you enjoyed wasting is not wasted time ......T.S. Elliot

Suspense is worse than disappointment................Robert Burns

God help the man who won't help himself, because no-one else will...........My Grandmother

Get Beta versions Here Get latest SciTE editor HereAutoIt 1-2-3 by Valuater - A great starting point.BigDod2.gifbd1.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users