Jump to content

--


AL3X
 Share

Recommended Posts

Hi all :D!

I have a little problem :). I have this:

...         
If not FileExists(@TempDir & "\acercade.au3") Then
        FileInstall("acercade.au3", @TempDir & "\acercade.au3")
EndIf
Run('"' & @AutoItExe & '" /ErrorStdOut /AutoIt3ExecuteScript "' & @TempDir & "\acercade.au3" & '"')
...

and it works when not compiled, but when I compile the script it doesnt work... Why? :S

Thanks :D

You're running it with the /AutoIt3ExecuteScript parameter. Does the acercade.au3 have any #include dependencies that aren't included in your compiled .EXE?

- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Link to comment
Share on other sites

Try changing the FileInstall to include the path to "acercade.au3"

FileInstall(@ScriptDir & "\acercade.au3", @TempDir & "\acercade.au3")

Of course if the file is not in @ScriptDir then you will have to modify the path.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Wow GEO, I never thought I'd see you make that mistake. No variables/macros in the source parameter. Tsk tsk.

The problem is that scripts must have all the needed #include's and if your script is not compiled (that au3 FileInstall'ed one) the FileInstall will not work correctly (the smaller script that gets extracted, I mean).

Link to comment
Share on other sites

Wow GEO, I never thought I'd see you make that mistake. No variables/macros in the source parameter. Tsk tsk.

The problem is that scripts must have all the needed #include's and if your script is not compiled (that au3 FileInstall'ed one) the FileInstall will not work correctly (the smaller script that gets extracted, I mean).

:D:D Right you are. Not enough coffee this morning. That's my excuse and I'm sticking to it!

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Try copying the gif to a different location. You might just not have the proper permissions to copy there. If you're using Vista try adding

#RequireAdmin
to the top of your code(s). That will send up an annoying little permissions box but it should also allow you to copy to most directories.

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...