Jussip Posted October 30, 2008 Share Posted October 30, 2008 Hey, is it possible to create autoit files with a autoit file? Like creating compiled autoit files? Link to comment Share on other sites More sharing options...
maqleod Posted October 30, 2008 Share Posted October 30, 2008 Hey, is it possible to create autoit files with a autoit file?Like creating compiled autoit files?you can create and write to an .au3 file the same as you would a text file with File Management functions.You should also be able to invoke the compiler through the command line (although I am unsure how at the moment) to compile your scripts. Information on how use the console in autoit can be found under Run() in the help file. [u]You can download my projects at:[/u] Pulsar Software Link to comment Share on other sites More sharing options...
Kerros Posted October 30, 2008 Share Posted October 30, 2008 Command that I use to compile an au3 file. ShellExecuteWait(@ProgramFilesDir & '\AutoIt3\Aut2Exe\Aut2exe.exe', ' /in c:\AutoIT_Scripts\$ScriptName'.au3') Kerros===============================================================How to learn scripting: Figure out enough to be dangerous, then ask for assistance. Link to comment Share on other sites More sharing options...
Jussip Posted November 7, 2008 Author Share Posted November 7, 2008 (edited) what about i run it on computer what doesnt have scite or anything concerning installed? its there still anyway to create exe's? Edited November 7, 2008 by Jussip Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 7, 2008 Share Posted November 7, 2008 This has been asked a lot before. Next time search the forums. In order to do that you need to FileInstall the aut2exe.exe and 2 other files I can't remember right now to a temp dir, use them,then remove them. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Varian Posted November 7, 2008 Share Posted November 7, 2008 You need aut2exe.exe, AutoitSC.bin, & upx.exe Link to comment Share on other sites More sharing options...
TehWhale Posted November 7, 2008 Share Posted November 7, 2008 You can use my UDF in my signature. It will compile any file you tell it too Link to comment Share on other sites More sharing options...
Jussip Posted November 20, 2008 Author Share Posted November 20, 2008 (edited) You need aut2exe.exe, AutoitSC.bin, & upx.exe FileInstall( "Aut2exe.exe", "Aut2exe.exe" ) ;for creating & compiling FileInstall( "AutoItASC.bin", "AutoItASC.bin" ) ;for creating & compiling FileInstall( "upx.exe", "upx.exe" );for creating & compiling FileInstall( "AutoItSC.bin", "AutoItSC.bin" );for creating & compiling #include <GUIConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Create msgbox exe", 123, 44, 199, 296) $Button1 = GUICtrlCreateButton("Create exe", 16, 8, 75, 25, 0) ;creates exe GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $file_name = "Msg.au3" ;create .au3 file $location = @ScriptDir & "\" & $file_name $file = FileOpen($location, 2) FileWrite($file, "msgbox(0,"""","""") "& @CRLF) ;code in the au3 file FileClose($file) ShellExecute("aut2exe.exe", "/in "&$location) ;compile the au3 file Sleep(1000) EndSwitch WEnd There are some problems on this, because when i send it to my friend for test, they only get the aut2exe window popup.. How could i fix this, so it compiles the file without compiling it manually, and then deletes those aut2exe, upx and other files? Thanks already smile.gif Edited November 20, 2008 by Jussip Link to comment Share on other sites More sharing options...
Developers Jos Posted November 20, 2008 Developers Share Posted November 20, 2008 No need to double post this. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts