cyblord Posted April 17, 2006 Share Posted April 17, 2006 (edited) 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! btw, I've got AutoIt v3 installed +bata Edited April 17, 2006 by cyblord Link to comment Share on other sites More sharing options...
slightly_abnormal Posted April 17, 2006 Share Posted April 17, 2006 (edited) I got that same error with scite.. maybe val, should include ie.au3 with 1-2-3?? or did he?get ie.au3 here..http://www.autoitscript.com/forum/index.php?showtopic=13398 Edited April 17, 2006 by slightly_abnormal Link to comment Share on other sites More sharing options...
Uten Posted April 17, 2006 Share Posted April 17, 2006 Hi and grettings 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. Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
cyblord Posted April 17, 2006 Author Share Posted April 17, 2006 (edited) 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: expandcollapse popup 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 April 17, 2006 by cyblord Link to comment Share on other sites More sharing options... slightly_abnormal Posted April 17, 2006 slightly_abnormal Active Members 464 Share Posted April 17, 2006 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 More sharing options...
cyblord Posted April 18, 2006 Author Share Posted April 18, 2006 alright, I'll give it a try after I get home. Link to comment Share on other sites More sharing options...
Valuater Posted April 18, 2006 Share Posted April 18, 2006 (edited) 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! 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 April 18, 2006 by Valuater Link to comment Share on other sites More sharing options...
cyblord Posted May 1, 2006 Author Share Posted May 1, 2006 (edited) 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 Edited May 1, 2006 by cyblord Link to comment Share on other sites More sharing options...
pete_l Posted August 15, 2006 Share Posted August 15, 2006 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 More sharing options...
pete_l Posted August 15, 2006 Share Posted August 15, 2006 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 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now