Jump to content

Autoit 1-2-3 Errors?


Recommended Posts

Hey everyone, I'm quite new to AutoIt and decided to give AutoIt 1-2-3 a try.

I downloaded the zip file, extracted everything, and executed Autoit-123.exe to start the program. It worked fine. I followed its instructions and installed autoit beta and the scite editor.

The problems came when I pressed on the, "Show me SciTe - Editor" button. I got the follow error:

Line 14 (File "...\Lesson-1.au3"):

no semi-colon is used for commands.; Notice the "for" is highlighted and known as a command.
^ERROR

Error: Unknown function name.

hmm okay. then I opened up the file with scite and read through it. it made some sense.

so my question is: was that error normal? Or is my system messed up? And the for quizzes, I'm I supposed to find out the answers through the demos?

I also couldn't run any of the tutorials. after dubble-clicking 01--Search-Forum.au3 , it gave me the following:

Error reading the file:

IE.au3

sorry if my questions seem too newbie. I'd really appreciate your help! :think:

btw, I've got AutoIt v3 installed +bata

Edited by cyblord
Link to comment
Share on other sites

Hi and grettings :think:

I have not tried Valuators AutoIt+1-2-3 but it looks like some file references has gone wrong.

Any how you have managed to get SciTE running, as I understand.

So a few tips to get you started. If a au3 file has focus in SciTE then the AutoIt help file should open as default when you hit F1. In the help file you will find a sample program for almost any function. Hit the "open this script" button and the sample should apear in SciTE. Run it with F5. You might also like the functionpopup program found at tools->functionpopup. Realy handy until you have the basic commands in your fingertips (but can be a bit anoying as it steals focus from SciTE from time to time).

Oh, well you probably figured out all of this allready.

Welcome, and happy coding.

Link to comment
Share on other sites

Hey,

thanks for the quick reply.

hmm okay, I got a hold of ie.au3 and put it into the tutorials folder.

I then ran the first script, 01--Search-Forum.au3, and got the follow error:


Line 776 (File "...\IE.au3"):

If IsObj($o_object.elements) Then
If IsObj($o_object.e^ERROR

Error: Unable to parse line.

oops nvm, I ran it using beta and it worked fine. is there a way to make it run with beta by default?


            
                


    Edited  by cyblord
    
    

            
        

        

        
    

    

    




    Link to comment
    
        
    
    
    

    
    Share on other sites
    

    
        
            

    

        
            

    

        
            

    

        
            

    

        
    


    
    More sharing options...

    


    

                    
                    
                    
                

                    

                    
                    





    

    

    
        
            
                


    
        
    

                
                
                    
                        

                    
                
            
        
        
            
                


slightly_abnormal
            
            
                Posted 
                
            
        
    
    
        


slightly_abnormal
            
        
        
            
                
                    


    
        
    

                    
                    
                        

                    
                
            
            
                Active Members
                
            
            
                
                    
                        
                            
                                
                            
                                 464
                            
                                
                            
                        
                        
                    
                
            
            
                

            
        
    
    
        



    
        
            
                
                    
                    
                    
                    
                    
                
            
            
                
                    
                    
                        
                        
                            Share
                        
                        
                        
                        
                        
                            
                                
                            
                            
                            
                            
                            
                            
                        
                    
                
                
            
        

        
            Posted 
            
            
                
                
            
        
    

    

    

    
        
        
            run this .. I think it should be in your start menu, in beta folder..

; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.1
; Author:        Ejoc
;
; Script Function:
;   Toggle AutoIt beta.
;
; ----------------------------------------------------------------------------

; Script Start - Add your code below here

#cs
vi:ts=4 sw=4:
DefaultAutoItToggle.au3
Ejoc
correction _(JPM)
#ce
Opt("MustDeclareVars",1)
Local $InstallDir = RegRead("HKLM\Software\AutoIt v3\AutoIt","InstallDir")
If $InstallDir = "" Then $InstallDir = RegRead("HKLM\Software\Wow6432Node\AutoIt v3\AutoIt","InstallDir")
If $InstallDir = "" Then
    MsgBox(0,'Error', 'Cannot find AutoIt Installation directory')
    Exit
EndIf

If StringInStr(RegRead("HKLM\Software\Classes\AutoIt3Script\Shell\Run\Command",""),"beta") Then; already using beta switch back
    RegWrite("HKLM\Software\Classes\AutoIt3Script\Shell\Compile\Command","", _
            "REG_SZ", _
            $InstallDir & '\Aut2Exe\Aut2Exe.exe /in "%l"')
    RegWrite("HKLM\Software\Classes\AutoIt3Script\Shell\Run\Command","", _
            "REG_SZ", _
            $InstallDir & '\AutoIt3.exe "%1" %*')
    RegWrite("HKLM\Software\Classes\AutoIt3Script\DefaultIcon","", _
            "REG_SZ", _
            $InstallDir & '\Icons\filetype1.ico')
    MsgBox(0,"Using","Using Release " & FileGetVersion($InstallDir & '\AutoIt3.exe') & " Version of AutoIt",2)
Else; change to beta
    RegWrite("HKLM\Software\Classes\AutoIt3Script\Shell\Compile\Command","", _
            "REG_SZ", _
            $InstallDir & '\beta\Aut2Exe\Aut2Exe.exe /in "%l"')
    RegWrite("HKLM\Software\Classes\AutoIt3Script\Shell\Run\Command","", _
            "REG_SZ", _
            $InstallDir & '\beta\AutoIt3.exe "%1" %*')
    RegWrite("HKLM\Software\Classes\AutoIt3Script\DefaultIcon","", _
            "REG_SZ", _
            $InstallDir & '\beta\Icons\filetype1.ico')
    MsgBox(0,"Using","Using beta " & FileGetVersion($InstallDir & '\beta\AutoIt3.exe') & " Version of AutoIt",2)
EndIf
Link to comment
Share on other sites

Hey everyone, I'm quite new to AutoIt and decided to give AutoIt 1-2-3 a try.

I downloaded the zip file, extracted everything, and executed Autoit-123.exe to start the program. It worked fine. I followed its instructions and installed autoit beta and the scite editor.

The problems came when I pressed on the, "Show me SciTe - Editor" button. I got the follow error:

Line 14 (File "...\Lesson-1.au3"):

no semi-colon is used for commands.; Notice the "for" is highlighted and known as a command.
^ERROR

Error: Unknown function name.

hmm okay. then I opened up the file with scite and read through it. it made some sense.

so my question is: was that error normal? Or is my system messed up? And the for quizzes, I'm I supposed to find out the answers through the demos?

I also couldn't run any of the tutorials. after dubble-clicking 01--Search-Forum.au3 , it gave me the following:

Error reading the file:

IE.au3

sorry if my questions seem too newbie. I'd really appreciate your help! :think:

btw, I've got AutoIt v3 installed +bata

1

to every one... that first question/problem is the "Show Me Scite" is NOT supposed to "Run"..

it opens scite, reads and shows you information... ( again it is NOT meant to run )

actual wording

; Notice the semi-colon ";" on the left for comments.

no semi-colon is used for commands. ; Notice the "for" is highlighted and known as a command.

2

Yes... all of the answers are in the demos

3

IE.au3 is required and "Welcome to Autoit 1-2-3" CLEARLY states this "in red letters" on the previous page

it states...

AutoIt Beta version and IE.au3 Library are *Required* for the next Demonstration.....

thanks

Valuater

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

  • 2 weeks later...

hey guys thanks for all the helpful replys. everything's been working out smoothly so far. however, I've got another small problem.

In AutoIt 1-2-3, whenever I click on the "Run Demo", or "Show Me This" (in the object create lesson) buttons, the scite editor would open up normally and show me the scripts. but at the same time, an error message box would pop up:

Line 0 (File "...\Autoit-123.exe"):

Run($Program_3 $ " "&$file_name, "", @SW_HIDE)

Error: Unable to execute the external program.

The system cannot find the file specified.

If I click on "ok", AutoIt 123 would close. Then I'd have to start all over again.

by the way, I've enabled beta to run by default.

Thanks!

oops nvm, problem solved with the lastest version of autoit 123 :think:

Edited by cyblord
Link to comment
Share on other sites

  • 3 months later...

1

to every one... that first question/problem is the "Show Me Scite" is NOT supposed to "Run"..

it opens scite, reads and shows you information... ( again it is NOT meant to run )

actual wording

2

Yes... all of the answers are in the demos

3

IE.au3 is required and "Welcome to Autoit 1-2-3" CLEARLY states this "in red letters" on the previous page

it states...

AutoIt Beta version and IE.au3 Library are *Required* for the next Demonstration.....

thanks

Valuater

OK I'm getting the same kind of errors that the OP had. I've downloaded/installed autoit v3 and the beta

version. I've downloaded and unzipped the autoit-123 file. (New release Aug 9 2006, running on W2K SP4)

Since it comes with no install instructions I just created a directory called "howto" and unzipped

the executable and directories in there.

Now, when I run the exe, I get exactly the same errors as above.

Deinstalling autoit and reinstalling fixes it, provided you set the default double-click action to "edit"

during the instalation process (the pre-selected action in the installation program is "run")

After that, running autoit-123 and clicking Show Me SciTE - Editor pops up a new window containing

the Lesson-1.au3 file. If you have the default double click action set to run then this button fails.

The Show Me - search help button acts the same.

Clicking the Show me - help demos button still fails with the error

Line 0 (File "C:\autoit\howto\Autoit-123.exe"):

For $X = 1 To $FileList[0]

For $x = 1 To $FileList^ ERROR

Error: Subscript used with non-Array variable

after clicking OK, the program fails and terminates.

Now, as you can tell by looking at the date I joined this forum (i.e. today), I'm a complete

novice so far as Autoit goes, and the very first sample program I run fails almost immediately.

I'm still forming my first impressions of the package - so far, I can't say I'm happy.

Can someone please help me sort out this stumbling block, so I can see if Autoit can

fulfill my hopes for an easy to use windows automation program?

Pete

Link to comment
Share on other sites

Clicking the Show me - help demos button still fails with the error

Line 0 (File "C:\autoit\howto\Autoit-123.exe"):

For $X = 1 To $FileList[0]

For $x = 1 To $FileList^ ERROR

Error: Subscript used with non-Array variable

after clicking OK, the program fails and terminates.

update: got it to work :whistle: I did another uninstall, this time I clicked the option to

remove all registry entries. Deleted all the autoit-123 stuff. Reinstalled both v3

and the beta version with double click == edit (as above).

Unzipped autoit-123 again into a new directory and run it, works OK now - all the

demos work

I think I've earned a beer

Pete

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...