Sign in to follow this  
Followers 0
nitro322

Compile-time variables?

6 posts in this topic

Does Auto-It support compile-time variables in any way? For example, I'd like to be able to set a variable in my script that's equal to the number of times a certain line appears in the script itself. I know that sounds kind of odd, but there's a reason. Can something like this be done?

Thanks.

Share this post


Link to post
Share on other sites



I have no idea what most of these do.

#compiler_allow_decompile
#compiler_au3check_dat
#compiler_aut2exe
#compiler_autoit3
#compiler_compression
#compiler_icon
#compiler_outfile
#compiler_passphrase
#compiler_prompt
#compiler_res_comment
#compiler_res_description
#compiler_res_field
#compiler_res_field1name
#compiler_res_field1value
#compiler_res_field2name
#compiler_res_field2value
#compiler_res_fileversion
#compiler_res_legalcopyright
#compiler_run_after
#compiler_run_au3check
#compiler_run_before

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Well these included tags relate to the compiler modes - the executer control application and most of these tags match the controls in this intuition witch again control the aut2exe application that uses the UPX execute archiver and the ResHacker application to do the icon stuff...

Long tail story - but most of these parametre actually controls the UPX archiver and ResHacker application...

kjactive :(

Edited by kjactive

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Yes this is "possible" but it involves a bit of haberdashery.

My intent for doing this was to create a constant whose content was randomly generated (for integrity and security reasons).

Here's how i did it:

- Created a primary script and added and include statement that pointed an include file which will create a global constant.

- Created a secondary script that would generate the content that was randomized and output that content to include.au3.

- Compiled that script into an exe.

- Went into the compile options in Scite and specified to 1) run the secondary.exe before compile and 2) to delete the generated included.au3 file after compile.

- Hit compile and voila!

Kludgy, but it works.

Edited by blademonkey

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post


Link to post
Share on other sites

You're running for the "oldest necroed thread ever" award, right?

1 person likes this

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

These directives are all renamed to #AutoIt3Wrapper_* and are used by AutoIt3Wrapper script that comes with the Full version installer of SciTE4AutoIt3.

*Click*


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
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0