Emolas Posted January 7, 2010 Posted January 7, 2010 Is it possible to compile an au3 file with an AutoIT script?
KaFu Posted January 7, 2010 Posted January 7, 2010 To compile you'll have to Fileinstall() the compiler , but as a work-around look up "AutoIt specific command Line Switches" in the help-file on how to start uncompiled scripts from within a compiled one... OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Emolas Posted January 7, 2010 Author Posted January 7, 2010 Wow, that was quick! I don't think I explained my problem correctly. What I am doing is making a script that will write another script and then compile it. It sounds like a strange way of going about it but the reason behind it is that one admin has a service account with exceptional rights and he wants a script that uses it and will have the password encoded and compiled into itself. That in itself would be simple but I do not want to ever see the password (no chance of misuse accusations) so I can write a script and give it to him to run. It asks him for the password, encrypts it, and adds it to the second script. What I want to do is compile the second script after I add the password line to it. here's a snippet: #Include <String.au3> $passIn = InputBox("Password", "enter password:", "", "*") $passEnc = _StringEncrypt(1,$passIn,"encrypt",1) $File = FileOpen("test2.au3",1) FileWriteLine($File,"$Password = " & "_StringEncrypt(0,""" & $passEnc & """,""encrypt"",1)") FileClose($File) ;here I want to compile $File
Splash Posted January 7, 2010 Posted January 7, 2010 Just include AutoIt compiler with your program. Automatic Update UDF - IP Address UDF - WinPcap AutoIt _FindDevice()[font="Verdana"][size="2"]AutoIt Spanish/Brasil/World community!!![/size][/font]Use you wanna a dot.tk domain please use my link:
AdmiralAlkex Posted January 7, 2010 Posted January 7, 2010 @Emolas You can Run() Aut2exe.exe .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Emolas Posted January 7, 2010 Author Posted January 7, 2010 Excellent, thank you. I always compile from within SciTE so I was unaware there was a command-line compiler.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now