Jump to content
Sign in to follow this  
Valuater

Welcome to AutoIt 1-2-3

Recommended Posts

I got an error:

Posted Image

(And the file exists)

It might be the spaces in the directory ?

Edited by forger

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

It's not the spaces :\

This is weird, I click on the image as directed and:

Posted Image

I'm not writing anything mine, I'm just following the tutorial from autoit1-2-3

Edited by forger

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

How many different drives do you have it installed on :)?

Installed? I just moved it to d:\ :mellow:

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 by forger

Share this post


Link to post
Share on other sites

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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Awesome .....I love this...

In addition ....for the love of pete please tell people where they can find their member numbers :mellow: 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 :o.

<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

Share this post


Link to post
Share on other sites

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)

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!

Edited by forger

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 by forger

Share this post


Link to post
Share on other sites

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 by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

* Ver 1.2.0 - April 7, 2006

i think i got all the probs fixed

YES!!!

8)

The Forums were changed... so i had to change the program too!

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 )


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 :think:

Thanks, Joash

Share this post


Link to post
Share on other sites

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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 by O2Freak

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...