forger Posted April 1, 2006 Share Posted April 1, 2006 (edited) I got an error:(And the file exists)It might be the spaces in the directory ? Edited April 1, 2006 by forger Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 1, 2006 Moderators Share Posted April 1, 2006 If the file exists in that 'C:' drive, then you well may be right about the spaces. 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. Link to comment Share on other sites More sharing options...
forger Posted April 1, 2006 Share Posted April 1, 2006 (edited) It's not the spaces :\This is weird, I click on the image as directed and:I'm not writing anything mine, I'm just following the tutorial from autoit1-2-3 Edited April 1, 2006 by forger Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted April 1, 2006 Moderators Share Posted April 1, 2006 How many different drives do you have it installed on ? 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. Link to comment Share on other sites More sharing options...
forger Posted April 1, 2006 Share Posted April 1, 2006 (edited) How many different drives do you have it installed on ?Installed? I just moved it to d:\ I wonder what the $filename or bogus autoit1-2-3 filename is lol.Edit:AutoIT3 is in D:\programs\AutoIT3\Beta is D:\programs\AutoIT3\beta\AutoIT123 is in D:\programs\Autoit_123\ (for now) Edited April 1, 2006 by forger Link to comment Share on other sites More sharing options...
Valuater Posted April 2, 2006 Author Share Posted April 2, 2006 (edited) this is a compiled exe program and the Auoit.exe is file installed like this $Program_2 = @TempDir & "\Temp.exe" FileInstall("C:\Program Files\AutoIt3\beta\AutoIt3.exe", $Program_2) thus, there should be a "Temp.exe" file in the users/temp directory then... the file is called like this $file_name = @ScriptDir & "\Lessons\Lesson-8.au3"; for the notepad lesson If $file_name = "" Then MsgBox(262208, "View SciTE Error", "No Files\Folders Found. ", 5) Return EndIf Run_demo($file_name) and... Func Run_demo($file_name) $file_name = FileGetShortName($file_name) Run(@ComSpec & " /c Start " & $file_name, "", @SW_HIDE); for SciTE Sleep(1000) If $file_check Then Run($Program_2 & " " & $file_name2, "", @SW_HIDE); for GUI Builder Else Run($Program_2 & " " & $file_name, "", @SW_HIDE); for all other demos EndIf If $Voice = 0 Then Return _Voice($file_name) EndFunc ;==>Run_demo the file name is given to the function ( I noticed that file WAS open in your SciTE ) get short name - removes spaces ( spaces are not the problem ) *** rather than copy the Autoit1-2-3.exe to a folder,... it may work if you just unzip it where you want it You may have not copied all the files and etc dunno??? 8) Edited April 2, 2006 by Valuater Link to comment Share on other sites More sharing options...
Neoborn Posted April 2, 2006 Share Posted April 2, 2006 Awesome .....I love this... In addition ....for the love of pete please tell people where they can find their member numbers I must have search for like two hours over the course of a couple days trying to find this information I searched everywhere and then just happened to notice it when I posted . <3 ~Projects~1. iPod Ejector 1.0 - Tool Used To Eject iPod in Windows - Uses DevEject.exe :P2. SmartFTP Close Popup Tool - Closes reminders from freeware SmartFTP.~Helpful Links For New Users~1. LXP's Learning AutoIT PDF Guide - <<< Go here for a PDF Guide on learning AutoIT from the ground up!<<<2. AutoIt 1-2-3 <<<Want to learn more about AutoIT quickly? Go Here<<<3. How To Install The Beta And Production Versions Of AutoIT / SciteAutoIT Link to comment Share on other sites More sharing options...
forger Posted April 2, 2006 Share Posted April 2, 2006 (edited) the file name is given to the function ( I noticed that file WAS open in your SciTE )get short name - removes spaces ( spaces are not the problem )***rather than copy the Autoit1-2-3.exe to a folder,... it may work if you just unzip it where you want itYou may have not copied all the files and etcdunno???8)My folders are usually small. (Edit: small=short-named)I think the problem is that it doesn't get AU3Info.exe .. can someone check the source?The "Au3 Info - Window Information" form and the next one, "Let's combine the two..." give me the same errorMy autoit is installed in D:\programs\AutoIT3 , the beta in D:\programs\AutoIT3\beta , hence AU3Info is installed in there as D:\programs\AutoIT3\AU3Info.exeThanks!Edit: the rest of the tutorials so far are just fine! Edited April 3, 2006 by forger Link to comment Share on other sites More sharing options...
Valuater Posted April 4, 2006 Author Share Posted April 4, 2006 My folders are usually small. (Edit: small=short-named) I think the problem is that it doesn't get AU3Info.exe .. can someone check the source? The "Au3 Info - Window Information" form and the next one, "Let's combine the two..." give me the same error My autoit is installed in D:\programs\AutoIT3 , the beta in D:\programs\AutoIT3\beta , hence AU3Info is installed in there as D:\programs\AutoIT3\AU3Info.exe Thanks! Edit: the rest of the tutorials so far are just fine! the program looks for AU3Info.exe.... like this $file_name = FileGetShortName(@ProgramFilesDir & "\Autoit3\AU3Info.exe") Run($file_name) thats the most common placing of the Info.exe by the Autoit-exe installers ( however, i might try to create a function for users like yourself in the next update ) thx 8) Link to comment Share on other sites More sharing options...
forger Posted April 4, 2006 Share Posted April 4, 2006 (edited) ah-hah! So that's why You could read the address from registry: [HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt] "InstallDir"="D:\\programs\\AutoIt3" "Version"="v3.1.1" "betaInstallDir"="D:\\programs\\AutoIt3\\beta" "betaVersion"="v3.1.1.117" or in AutoIT: $file_name = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "InstallDir") & " \AU3Info.exe" Edited April 4, 2006 by forger Link to comment Share on other sites More sharing options...
Valuater Posted April 5, 2006 Author Share Posted April 5, 2006 (edited) actually i may include this bit of script from my IE.au3 Builder written by gafrost $AutoItBetaLocation = IniRead(@ScriptDir & "\IE-library.ini","exe","dir","") If $AutoItBetaLocation = "" Then $AutoItBetaLocation = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt","betaInstallDir") If $AutoItBetaLocation = "" Then $AutoItBetaLocation = FileSelectFolder("Select Folder where the Beta AutoIt is installed","c:\",4,@ProgramFilesDir & "\AutoIt3\beta") If $AutoItBetaLocation = "" Then $iMsgBoxAnswer = MsgBox(262209, "IE.au3 Error #1", "Autoit3 Beta is required " & @CRLF & "Download from www.Autoit3.com ? ") If $iMsgBoxAnswer = 1 Then $web_loc = "http://www.autoitscript.com/forum/index.php?showtopic=19717#" Run(@ComSpec & " /c Start " & $web_loc, "", @SW_HIDE) MsgBox(262208, "Web Site", "The AutoIt3 Beta Link is at the top of this page... " & @CRLF & @CRLF & "Please Download and Install ", 10) $Dwait = 1 EndIf ;Exit EndIf EndIf IniWrite(@ScriptDir & "\IE-library.ini","exe","dir",$AutoItBetaLocation) EndIf then... If Not FileExists($AutoItBetaLocation & "\Au3Info.exe") Then.... message box because the Au3Info.exe is located in the beta folder also 8) Edited April 5, 2006 by Valuater Link to comment Share on other sites More sharing options...
forger Posted April 6, 2006 Share Posted April 6, 2006 because the Au3Info.exe is located in the beta folder also hate to disappoint you, but au3info.exe is not in my beta dir: au3check.dat au3check.exe Aut2Exe AutoIt v3 Website.url AutoIt.chm AutoIt.chw AutoIt3.chm AutoIt3.exe AutoIt3Help.exe Examples Extras Icons Include psapi.dll UDFs3.chm Uninstall.exe Link to comment Share on other sites More sharing options...
Valuater Posted April 7, 2006 Author Share Posted April 7, 2006 hate to disappoint you, but au3info.exe is not in my beta dir: au3check.dat au3check.exe Aut2Exe AutoIt v3 Website.url AutoIt.chm AutoIt.chw AutoIt3.chm AutoIt3.exe AutoIt3Help.exe Examples Extras Icons Include psapi.dll UDFs3.chm Uninstall.exe You are right again... I have been trying to utilize the Autoit.exe within the Autoit1-2-3.exe and there is a problem with where autoit looks for the #includes ... working on it, sorry its taking so long thanks Valuater 8) Link to comment Share on other sites More sharing options...
Valuater Posted April 7, 2006 Author Share Posted April 7, 2006 (edited) * Ver 1.2.0 - April 7, 2006i think i got all the probs fixedYES!!!8)The Forums were changed... so i had to change the program too! Edited April 8, 2006 by Valuater Link to comment Share on other sites More sharing options...
Valuater Posted April 8, 2006 Author Share Posted April 8, 2006 Glad to see the Examiner is back and running (Looks like i got ALL the errors) OFF-LINE ( Due to Forum Changes ) Mar 17 2006, 06:56 AM BACK ON-LINE April 7, 2006 8) Link to comment Share on other sites More sharing options...
jackyyll Posted April 9, 2006 Share Posted April 9, 2006 Wow.. i did horrible.. stupid confusing questions.. Link to comment Share on other sites More sharing options...
Valuater Posted April 9, 2006 Author Share Posted April 9, 2006 Wow.. i did horrible.. stupid confusing questions..the first exam with 10 questions is really easy...the second with 20 question is a little trickier...the third level is more difficult and confusing questions..8)( if they were all easy, everyone would get 1000 points total score ) Link to comment Share on other sites More sharing options...
O2Freak Posted April 20, 2006 Share Posted April 20, 2006 Hi, i have a prob with the autoit 1-2-3 .......i tried to open the Autoit1-2-3 file but an error apeared ..... Line 0 (File "C:\Program Files\AutoIt3\beta\Autoit 123\Autoit-123.exe"): Return $ai_Return[0] Return $ai_Return^ ERROR Error: Subscript used with non-Array variable. an anybody help me with this error please Thanks, Joash Link to comment Share on other sites More sharing options...
Valuater Posted April 20, 2006 Author Share Posted April 20, 2006 here is the part that has that line.... Return $ai_Return[0] Func _ReduceMemory() If StringInStr(@OSTYPE,"WIN32_WINDOWS") And Not FileExists(@ScriptDir & "\psapi.dll") Then FileInstall("C:\Program Files\AutoIt3\psapi.dll", @ScriptDir & "\psapi.dll") EndIf Local $ai_Return = DllCall("psapi.dll", 'int', 'EmptyWorkingSet', 'long', -1) Return $ai_Return[0] EndFunc what OS system are you running on??? 8) Link to comment Share on other sites More sharing options...
O2Freak Posted April 20, 2006 Share Posted April 20, 2006 (edited) Mine is Windows . Ummmm......sorry for asking so many newbie quetions but what am i suppose to do with that CODE??? Thanks again =D Edited April 20, 2006 by O2Freak 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