Jump to content

Recommended Posts

Posted

I just made a script, and i remember a long time ago before i quit scripting, you could do the whole "compile options" to set all the stuff when you right click and go to properties, to set the icon, ect ect.... When I got the new auto-it I noticed that now, scite no longer has that option, neither does right clicking the script.... how do i do this with the new autoit?

Posted

I thought the latest version had the gui compile wrapper, have you got the latest version of autoit?

If not you can use the following compile directives at the top of your script

You can define the Compiler Directives in your script and have AutoIt3Wrapper.exe compile it with these settings:

#Region AutoIt3Wrapper directives section

;** This is a list of compiler directives used by AutoIt3Wrapper.exe.

;** comment the lines you don't need or else it will override the default settings

;===================================================================================================

============

;** AUTOIT3 settings

#AutoIt3Wrapper_Version= ;(B/P) Use Beta or Production for AutoIt3 and AUT2EXE. Default is P

#AutoIt3Wrapper_Run_Debug_Mode= ;(Y/N)Run Script with console debugging. Default=N

;===================================================================================================

============

;** AUT2EXE settings

#AutoIt3Wrapper_AUT2EXE= ;Override the default compiler with this version.

#AutoIt3Wrapper_UseAnsi= ;(Y/N) Use Ansi versions for AutoIt3a or AUT2EXEa. Default=N

#AutoIt3Wrapper_Icon= ;Filename of the Ico file to use

#AutoIt3Wrapper_OutFile= ;Target exe/a3x filename.

#AutoIt3Wrapper_OutFile_Type= ;a3x=small AutoIt3 file; exe=Standalone executable (Default)

#AutoIt3Wrapper_Compression= ;Compression parameter 0-4 0=Low 2=normal 4=High. Default=2

#AutoIt3Wrapper_Allow_Decompile= ;(Y/N) Default = y which allows decompile.

#AutoIt3Wrapper_PassPhrase= ;Password to use for compilation

#AutoIt3Wrapper_UseUpx= ;(Y/N) Compress output program. Default=Y

;===================================================================================================

============

;** Target program Resource info

#AutoIt3Wrapper_Res_Comment= ;Comment field

#AutoIt3Wrapper_Res_Description= ;Description field

#AutoIt3Wrapper_Res_Fileversion= ;File Version

#AutoIt3Wrapper_Res_FileVersion_AutoIncrement= ;(Y/N/P) AutoIncrement FileVersion After Aut2EXE is finished. default=N

; P=Prompt, Will ask at Compilation time if you want to increase the version number.

;#AutoIt3Wrapper_Res_Language=2057 ;Resource Language code . default 2057=English (United Kingdom)

#AutoIt3Wrapper_Res_LegalCopyright= ;Copyright field

; free form resource fields ... max 15

; you can use the following variables:

; %AutoItVer% which will be replaced with the version of AutoIt3

; %date% = PC date in short date format

; %longdate% = PC date in long date format

; %time% = PC timeformat

#AutoIt3Wrapper_Res_Field=AutoIt Version|%AutoItVer%

#AutoIt3Wrapper_Res_Field=Name|Value ;Free format fieldname|fieldvalue

#AutoIt3Wrapper_Res_Field=Name|Value ;Free format fieldname|fieldvalue

#AutoIt3Wrapper_Res_Field=Name|Value ;Free format fieldname|fieldvalue

#AutoIt3Wrapper_Res_Field=Name|Value ;Free format fieldname|fieldvalue

;Add extra ICO files to the resources which can be used with TraySetIcon(@ScriptFullPath, 3) etc

; list of filename of the Ico files to be added, First one will have number 3, then 4 ..etc

#AutoIt3Wrapper_Res_Icon_Add= ; Filename of ICO to be added.

#AutoIt3Wrapper_Res_Icon_Add= ; Filename of ICO to be added.

;===================================================================================================

============

; Tidy Settings

#AutoIt3Wrapper_Run_Tidy= ;(Y/N) Run Tidy before compilation. default=N

#AutoIt3Wrapper_Tidy_Stop_onerror= ;(Y/N) Continue when only Warnings. default=Y

#Tidy_Parameters= ;Tidy Parameters...see SciTE4AutoIt3 Helpfile for options

;===================================================================================================

============

; Obfusticator

#AutoIt3Wrapper_Run_Obfuscator= ;(Y/N) Run Obfuscator before compilation. default=N

#obfuscator_parameters

;===================================================================================================

============

; AU3CHECK settings

#AutoIt3Wrapper_Run_AU3Check= ;(Y/N) Run au3check before compilation. Default=Y

#AutoIt3Wrapper_AU3Check_Parameters= ;Au3Check parameters

#AutoIt3Wrapper_AU3Check_Dat= ;Override the default au3check definition

#AutoIt3Wrapper_AU3Check_Stop_OnWarning= ;(Y/N) N=Continue on Warnings.(Default) Y=Always stop on Warnings

#AutoIt3Wrapper_AU3Check_Parameters= ;Au3Check parameters

#AutoIt3Wrapper_PlugIn_Funcs= ;Define PlugIn function names separated by a Comma to avoid AU3Check errors

;===================================================================================================

============

; cvsWrapper settings

#AutoIt3Wrapper_Run_cvsWrapper= ;(Y/N/V) Run cvsWrapper to update the script source. default=N

; V=only when version is increased by #AutoIt3Wrapper_Res_FileVersion_AutoIncrement.

#AutoIt3Wrapper_cvsWrapper_Parameters= ; /NoPrompt : Will skip the cvsComments prompt" & @CRLF & _

; /Comments : Text to added in the cvsComments. It can also contain the below variables.

;===================================================================================================

============

; RUN BEFORE AND AFTER definitions

; The following directives can contain:

; %in% , %out%, %icon% which will be replaced by the fullpath\filename.

; %scriptdir% same as @ScriptDir and %scriptfile% = filename without extension.

; %fileversion% is the information from the #AutoIt3Wrapper_Res_Fileversion directive

; %scitedir% will be replaced by the SciTE program directory

#AutoIt3Wrapper_Run_Before= ;process to run before compilation - you can have multiple records that will be processed in sequence

#AutoIt3Wrapper_Run_After= ;process to run After compilation - you can have multiple records that will be processed in sequence

#EndRegion

Posted

Hmmm there used to be a script, or something built into scite, or something like that that you could just put it all into the input boxes of a GUI and it would do all that crap, is that still around? lol I will use this if I have to, but I make ALOT of stuff, I have like 7 different things almost completed as is that I need to compile, so is this the only way? that script doesnt exist any more?

Oh and my version of autoit is the newest one, not beta, but the newest non-beta version. It has the aut2exe in it, but it only allows me to add the icon to the program, not all the information like description, author, all that stuff.

~TK

Posted

Hmmm there used to be a script, or something built into scite, or something like that that you could just put it all into the input boxes of a GUI and it would do all that crap, is that still around?

On the download page is a separate download option for installing Scite4AutoIt3 (includes the goodies). You need to install that item to get the AutoIt3Wrapper to make use of the directives that ChrisL displays. The Scite4AutoIt3 included within the AutoIt installation is a bare minimum of Scite4AutoIt3 without the goodies.

:whistle:

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...