Jump to content
Sign in to follow this  
Blue_Drache

#region & #compiler directives

Recommended Posts

Ok, I've figured out that I can control the AutoIt Compiler (Ctrl-F7) included within SciTE from inside the program with the

#Region - Compiler Directives

#Compiler_Prompt = y
#Compiler_AUT2EXE = C:\AutoIt\Aut2Exe\Aut2Exe.exe
#Compiler_Icon = C:\Icons\StarWars\AT ST.ico
; Target: C:\AutoIt\User Scripts\Compiled Scripts\Closer.exe
#Compiler_Compression = 4
#Compiler_Allow_Decompile = y
#Compiler_PassPhrase =
#Compiler_Res_Fileversion = 0.0.0.9
#Compiler_Res_Description = Startup Script
#Compiler_Res_LegalCopyright =
#Compiler_Res_Comment = Created by me
#Compiler_Res_Field1Name = Platform
#Compiler_Res_Field1Value = 9x, NT
#Compiler_Res_Field2Name = Autoit version
#Compiler_res_Field2Value = 1.0.103
#Compiler_Run_AU3Check = n
#Compiler_Run_Before =
#Compiler_Run_After =

#EndRegion

But what I'd like to add to is is the ability to put the target in a #Compiler_Target directive, but it throws an "invalid compiler directive" error. Is there someone to talk to so this could be added as a field to populate with a #variable, and still be an editable (white) field?


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

It does not work for me! Should this code be in the beginning of the script or somewhere else? I compile it with CTRL+F7 and it has no such fields in the version in the properties of the file... #Compiler_Icon field means the icon for the new executable?

Share this post


Link to post
Share on other sites

It does not work for me! Should this code be in the beginning of the script or somewhere else? I compile it with CTRL+F7 and it has no such fields in the version in the properties of the file... #Compiler_Icon field means the icon for the new executable?

Don't you think after two years that some things might have changed?

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

Don't you think after two years that some things might have changed?

OK, so something may have changed, so do you know some workaround for this or not? ;)

Share this post


Link to post
Share on other sites

The Scite4AutoIt3 Help file may have information to use of the directives. The compiler directives are used with AutoIt3Wrapper as can be viewed here. There ia also an example file in AutoIt3Wrapper's directory that has the latest directives list.

All of those directives are still used today, except the field options are now split on one line i.e. ...=name|value. Check the help file for more information.

;)

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  

×
×
  • Create New...