Results 1 to 14 of 14

Thread: AutoIt

  1. #1
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wetherby, Yorkshire, England
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    AutoIt

    I've found this great little automator program called AutoIt. It's like a very simple (and obviously limited) VBS and works well for automating or scheduling things like backups, file moves, deletions etc.
    Check it out here, see what you think.
    Peter

  2. #2
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: AutoIt

    I've never tried it, but this one has been mentioned here in The Lounge before, like in this <!post=TimOz post.,210502>TimOz post.<!/post>

  3. #3
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    And I'm still a believer. <img src=/S/grin.gif border=0 alt=grin width=15 height=15> I've found AutoIt handy for conditional execution of scheduled tasks. For example, i use it to regularly check for info at certain sites, but only if my dalup connection is live. It's also great for automating access though layers of dialogs to a buried setting(s) that you may want to toggle or change frequently. I've limited my use of it to the "quick & dirty" end of the scale, but it's robust, capable of far more, and well worth knowing about..
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  4. #4
    5 Star Lounger
    Join Date
    Mar 2002
    Location
    Buenos Aires, Argentina
    Posts
    877
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    Hi Tim,

    I
    <img src=/w3timages/blue3line.gif width=33% height=2>
    <img src=/S/flags/Argentina.gif border=0 alt=Argentina width=30 height=18> <big><font color=4682b4><font face="Comic Sans MS">Diegol</font face=comic></font color=4682b4> </big>

  5. #5
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    Diegol, I'm glad you intend to <img src=/S/rtfm.gif border=0 alt=rtfm width=24 height=23>, politely <img src=/S/grin.gif border=0 alt=grin width=15 height=15>. I found it one of the best for freeware. It has all the information you need, and is a good reference once you get a feel for AutoIt. Because of the amount of information, it can seem a bit overwhelming at first.

    You asked about doing a script from scratch. Notepad, or whatever your favourite text editor is, is fine to edit scripts. My approach is to cheat, if possible, and find the closest thing to what I need, then hack it to suit. To that end, it's worth downloading and looking at the sample scripts from the site - they vary from basic to "what the ?" <img src=/S/dizzy.gif border=0 alt=dizzy width=15 height=15>. The (v2) example script to kill GeoCities and Tripod sponsor windows is a good example of a simple and effective script. I've also appended a small script to refresh my broker's screen during the day so I can keep an eye on the share prices.

    If you want to try something basic, from "scratch" (and if the manual and examples haven't scared you off), I can try to coach you through it. No promises though, as is often the case, a simple need doesn't always succumb to a simple solution.
    <hr> ; Sanford Refresh - Run by Task Scheduler every 20mins during trading hours & days

    ; Allow window headings in TaskBar & Icon Tray to be 'seen'
    detecthiddentext, on
    ; Skip if dial up connection not in use
    ifwinnotexist, Connected to, , goto, DONE
    ; Skip if broker screen not open
    ifwinnotexist, Sanford: , , goto, DONE

    ; Restore broker screen, make it the active window, and refresh it.
    winrestore, Sanford:
    winactivate, Sanford:
    winwaitactive, Sanford:
    send, {F5}

    DONE:
    exit <hr>
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  6. #6
    KTYorke
    Guest

    Re: AutoIt

    As per your PS.... polite is the way that smilie is intended <img src=/S/grin.gif border=0 alt=grin width=15 height=15> I'm a technical writer and actually write those FM <img src=/S/evilgrin.gif border=0 alt=evilgrin width=15 height=15>. Since I'm so used to getting a program without help or a manual (since I'm the one writing it) I forget that other programs DO include helpful help from time to time... I always have to remind myself as politely as I can to <img src=/S/rtfm.gif border=0 alt=rtfm width=24 height=23>
    have fun

  7. #7
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Wetherby, Yorkshire, England
    Posts
    283
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    I've just checked back and I'm not sure but I do believe I first got AutoIt from TimOz's post. Oops, I wasn't trying to steal anyone's thunder.
    Any way it is a great little program.
    Peter

  8. #8
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    I'm big, bad & ugly enough to look after my own thunder <img src=/S/grin.gif border=0 alt=grin width=15 height=15> (besides the <!post=initial rumblings, 131092>initial rumblings<!/post> belong to <!profile=unkamunka>unkamunka<!/profile> almost a year ago). Anyway, I'm glad you like it Peter . It's one of those little gems that crop up now and then. And the great thing about it is that it costs nothing to share.
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  9. #9
    5 Star Lounger
    Join Date
    Mar 2002
    Location
    Buenos Aires, Argentina
    Posts
    877
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    Tim,

    Thanks for your prompt response. I swear I've been trying to, but my daily chores kept my hands from engaging the time-consuming funny-manual-reading operation.
    Your script example shows how AutoIt can be put to some real good use. This refresh thing is a major drawback most of us go thru, still very little are so open-minded to think it can be solved (because the solution is way too far from our common usage of PCs - call it ignorance, that's my case). And I'm sure there are many such other annoyances that one thinks of getting rid of once they get to know this kind of apps.
    So... here is my promise: "<font color=4682b4>I will post back as soon as I my rear can rest a while long enough to let me read till I sense that I have, if not mastered, at least understood the basics of the allmighty AutoIt</font color=4682b4>". Amen.

    I am confident that a good reading will suffice. Should it not, I'll opt for your kind trying to coach offer (BTW... do you KNOW what you're getting into?? <img src=/S/grin.gif border=0 alt=grin width=15 height=15>)

    Thank you very much
    <img src=/w3timages/blue3line.gif width=33% height=2>
    <img src=/S/flags/Argentina.gif border=0 alt=Argentina width=30 height=18> <big><font color=4682b4><font face="Comic Sans MS">Diegol</font face=comic></font color=4682b4> </big>

  10. #10
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15> Hey, there was a disclaimer with that offer! What's life without a few risks anyway? <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  11. #11
    5 Star Lounger
    Join Date
    Mar 2002
    Location
    Buenos Aires, Argentina
    Posts
    877
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    Ahhrghh, I knew it!!! I never read the small print!!!
    BTW... your acceptance of the challenge makes me think you have a different conception of what 'few' means... maybe you're trying to redefine it? <img src=/S/laugh.gif border=0 alt=laugh width=15 height=15>
    <img src=/w3timages/blue3line.gif width=33% height=2>
    <img src=/S/flags/Argentina.gif border=0 alt=Argentina width=30 height=18> <big><font color=4682b4><font face="Comic Sans MS">Diegol</font face=comic></font color=4682b4> </big>

  12. #12
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    Redefine? <img src=/S/grin.gif border=0 alt=grin width=15 height=15>
    <hr> When I use a word, it means just what I choose it to mean - neither more nor less <hr>
    (Humpty Dumpty, in "Alice Through The Looking Glass", by Lewis Carroll)
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

  13. #13
    5 Star Lounger
    Join Date
    Mar 2002
    Location
    Buenos Aires, Argentina
    Posts
    877
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    Now, wait up a sec!

    A few hours from my last post I can say I thoroughly read the manual, and am up to nearly any programming task <img src=/S/artist.gif border=0 alt=artist width=34 height=29>.
    Well, maybe not just so, but at least I understand the basics and feel eager to optimize many simple mouse-and-keyboard driven steps.

    My first script is attached below, buy I must admit to having mostly copied and pasted from one of the FAQs. It's purpose is to get directly to the always shy Install/Uninstall Programs dialog box. It'll run on a Win 98 Spanish PC, so you'll have to tweak it a little for it to work in an English Win Ver. The keystrokes and the windows' titles mainly.

    ------ Script Starts HERE

    Send, ^{ESC}
    Send, c
    Send, {ENTER}
    WinWaitActive, Panel de control
    Send, aa{ENTER}
    winclose, Panel de control
    Exit

    ------ Script Ends HERE

    As you'll notice by its lower case, all my glory lies in the "winclose" command, which is the only one I really had to put in the alrady compiled script.

    Thanks Tim, hope to be able to find many other wastes of time to do away with.

    <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15>
    <img src=/w3timages/blue3line.gif width=33% height=2>
    <img src=/S/flags/Argentina.gif border=0 alt=Argentina width=30 height=18> <big><font color=4682b4><font face="Comic Sans MS">Diegol</font face=comic></font color=4682b4> </big>

  14. #14
    5 Star Lounger
    Join Date
    Dec 2002
    Location
    Perth, Western Australia, Australia
    Posts
    730
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: AutoIt

    <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23> You're well on the way! I think I'll downgrade the tutoring offer to "maybe help debug" <img src=/S/grin.gif border=0 alt=grin width=15 height=15> . The real fun starts when you get ambitious and think you've got it licked. Let me know if you find a way to automatically restock the beer fridge. <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>
    <font face="Comic Sans MS" color="blue">TimOz</font>
    <img src=/S/flags/Finland.gif border=0 alt=Finland width=30 height=18> <img src=/S/flags/Australia.gif border=0 alt=Australia width=30 height=18>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •