Jump to content

exe to au


MXM
 Share

Recommended Posts

hey guys, first post right here, sorry couldnt find an introduce yourself thread... anyways

i was trying to figure out why i get error codes after trying to compile a script file i got from uncompiling an exe file created on autoit?

i also tried to compile the "original" source code and still get the same errors...

makes no sense to me, (not at first thought at least) any ideas?

the original code was written prolly back in 04...so.

i get a syntax error and a undefined function error, which makes not much sense either since after checkin the code this so called function is defined.... i was thinking on versions' compatibility issues.... any idea?

ERROR: syntax error

$str_help = "\n\n"_

~~~~~~~~~~~~~~~~~~^

ERROR: detectlanguage(): undefined function.

$language = detectlanguage()

~~~~~~~~~~~~~~~~~~~~~~~~~~~^

Thanks and peace.

PS. Any good material, manual, links, etc about autoit is welcome, i finally decided to begin programming with it :D

Link to comment
Share on other sites

F1 in the help file, to help you properly we need to see the code.

Interpreters have great power!Although they live in the shadow of compiled programming languages an interpreter can do anything that a compiled language can do, you just have to code it right.

Link to comment
Share on other sites

The first most important resource for AutoIt is the help file. If that script was written that long ago, there are so many changes that it won't be worth the time to try fixing it. I suggest that you use that code as a guide and just re-write it from scratch using the AutoIt help file to assist you.

I'm thinking that detectlanguage() is probably an unrequired function anyway and is either replaced by the @OSLang macro or it was written by someone who didn't know about that macro. In the latter case, you have bigger problems than you think you do so it's rewrite time anyway.

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

I guess you could use the small plus button in the lower right corner. Or am I wrong?

You're not wrong.

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

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