Sign in to follow this  
Followers 0
RealisT

Runs in Windows XP but not in Windows 98

29 posts in this topic

My AutoIt v3 scripts and executables run great on my Windows XP machine. But when I copy these files over to my WIndows 98 box (which has Autoit v3 installed), none of these scripts or executables work.

Trying to run the scripts from SciTe, the console reads like this:

C:\PROGRAM FILES\AUTOIT3\SCITE\..\autoit3.exe /ErrorStdOut "C:\Program Files\AutoIt3\My Scripts\Display.au3"

C:\Program Files\AutoIt3\My Scripts\Display.au3 (0) : ==> Error opening the file.:

>Exit Code: 1 Time: 0.897

What am I overlooking?

Thanks all

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Compile it with ANSI, but don't count on using it often, I think ANSI is being removed.

Edited by JustinReno

Share this post


Link to post
Share on other sites

Post sorce of your script.

There may be lot of various problems generally.

Whatever script I use, it is the same result. I don't think it even gets to the code-validation phase anyway.

In this case, my script is one line:

Beep(660, 600)

For some reason the OS is not liking any AutoIt item, whether script or executable, homemade or borrowed.

Thanks

Share this post


Link to post
Share on other sites

Whatever script I use, it is the same result. I don't think it even gets to the code-validation phase anyway.

In this case, my script is one line:

Beep(660, 600)

For some reason the OS is not liking any AutoIt item, whether script or executable, homemade or borrowed.

Thanks

On my WIN98SE all works OK.

Post WHOLE output from your Scite output window.

Share this post


Link to post
Share on other sites

On my WIN98SE all works OK.

Post WHOLE output from your Scite output window.

The entire output is shown in my original posting. There is nothing else.

Thanks

Share this post


Link to post
Share on other sites

What is your version of AutoIt?

Share this post


Link to post
Share on other sites

What is your version of AutoIt?

It is listed as "3, 2, 10, 0" (presumably 3.2.10.0 ?)

Share this post


Link to post
Share on other sites

Are you sure your script is not corrupt/moved?

Share this post


Link to post
Share on other sites

Are you sure your script is not corrupt/moved?

It was not behaving as corrupted on my XP box.

Anyway, the same results apply to any script I've just created--from scratch--minutes ago on the 98.

Thanks

Share this post


Link to post
Share on other sites

Put this at the top of your script and run it and see if it works.

#AutoIt3Wrapper_UseAnsi=y

Share this post


Link to post
Share on other sites

Put this at the top of your script and run it and see if it works.

#AutoIt3Wrapper_UseAnsi=y

Same result: "Error opening the file."

Share this post


Link to post
Share on other sites

Ok,

Try to put the file somewere else (Your home drive (C:\?)) and run it with that code at the top.

Share this post


Link to post
Share on other sites

Ok,

Try to put the file somewere else (Your home drive (C:\?)) and run it with that code at the top.

(All of this is taking place from C:\)

Moving the script to my desktop and trying, I get the same result.

Share this post


Link to post
Share on other sites

Try compiling it. Are you running it on a Virtual Machine?

I am not on a virtual machine.

After compiling it and trying to open the .exe, nothing happens.

(I also added a MsgBox command just in case the computer can't beep).

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

The problem is the following:

You are using the standard "lite" version of SciTE4AutoIt3, that comes with the AutoIt3 installer, which uses this setting for F5/Run:

# Commands to compile / run your script
command.go.$(file.patterns.au3)="$(SciteDefaultHome)\..\autoit3.exe" /ErrorStdOut "$(FilePath)" $(1) $(2) $(3) $(4)
command.go.subsystem.$(file.patterns.au3)=1
command.compile.$(file.patterns.au3)="$(SciteDefaultHome)\..\aut2exe\aut2exe.exe" /in "$(FilePath)"
command.build.$(file.patterns.au3)="$(SciteDefaultHome)\..\aut2exe\aut2exe.exe" /in "$(FilePath)"

Win98 needs to run AutoIt3A.exe so go into SciTE and select Options / Edit User options file and put these lines in there:

# Commands to compile / run your script
command.go.$(file.patterns.au3)="$(SciteDefaultHome)\..\autoit3A.exe" /ErrorStdOut "$(FilePath)" $(1) $(2) $(3) $(4)
command.go.subsystem.$(file.patterns.au3)=1
command.compile.$(file.patterns.au3)="$(SciteDefaultHome)\..\aut2exe\aut2exeA.exe" /in "$(FilePath)"
command.build.$(file.patterns.au3)="$(SciteDefaultHome)\..\aut2exe\aut2exeA.exe" /in "$(FilePath)"

This will override the internal settings and should fix your Win9X problem... :)

@others: AutoIt3Wrapper, which automagiccally handles everything doesn't come with the Lite version. Its easy to see that the OP uses the lite version when looking at the posted line form the output pane. This also means that the suggested directives won't do anything for the OP.

how quick you get used to the fact that all is done for you by autoit3wrapper.. ^_^

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

The problem is the following:

You are using the standard "lite" version of SciTE4AutoIt3, that comes with the AutoIt3 installer, which uses this setting for F5/Run:

<<CODE HERE>>

Win98 needs to run AutoIt3A.exe so go into SciTE and select Options / Edit User options file and put these lines in there:

<<CODE HERE>>

This will override the internal settings and should fix your Win9X problem... :)

@others: AutoIt3Wrapper, which automagiccally handles everything doesn't come with the Lite version. Its easy to see that the OP uses the lite version when looking at the posted line form the output pane. This also means that the suggested directives won't do anything for the OP.

how quick you get used to the fact that all is done for you by autoit3wrapper.. ^_^

I keyed this code in, and the executable runs OK in Win 98!

I still can't run any uncompiled AutoIt v3 scripts out of Scite, however. I also can't run an executable containing a GUI.

I noticed that SciTe has no Open au3.Properties option...something which exists & is quite verbose on my XP box. Would this be provided by AutoIt3Wrapper, or do I simply have an incomplete install?

Thanks

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  
Followers 0