lyledg Posted February 18, 2005 Share Posted February 18, 2005 I am having some issues when compiling an exe using Aut2exe with the command line options.. Here is the code used thus far.. $file = 'Aut2exe.exe /in test.au3 /out "test.exe" /nodecompile' If FileExists("Test.au3") Then ;Runwait(@ComSpec & ' /c "' & $file & '" ', @ScriptDir, @SW_MAXIMIZE) Runwait('Aut2exe.exe /in test.au3 /out "test.exe" /nodecompile', @ScriptDir, @SW_MAXIMIZE) SplashTextOn("Compiling..", "Compiling executable...Please wait ", 280, 30, -1, -1, 1, "", 10,600) Sleep(5000) SplashOff() What I am finding is the *.au3 compiles, but is corrupt when trying to run it... If I use the "right click, compile" option on the script, it then compiles AND runs correctly.. What should I be doing here to make sure the command line options work correctly? Cheers Link to comment Share on other sites More sharing options...
iceberg Posted February 18, 2005 Share Posted February 18, 2005 your IF statement has no EndIf statement, pls check. mouse not found....scroll any mouse to continue. Link to comment Share on other sites More sharing options...
lyledg Posted February 18, 2005 Author Share Posted February 18, 2005 $file = 'Aut2exe.exe /in test.au3 /out "test.exe" /nodecompile' If FileExists("Test.au3") Then ;Runwait(@ComSpec & ' /c "' & $file & '" ', @ScriptDir, @SW_MAXIMIZE) Runwait('Aut2exe.exe /in test.au3 /out "test.exe" /nodecompile', @ScriptDir, @SW_MAXIMIZE) SplashTextOn("Compiling..", "Compiling executable...Please wait ", 280, 30, -1, -1, 1, "", 10,600) Sleep(5000) SplashOff() Endif Thanks for pointing that out, but that was a small omission when I was pasting the code..It's not the cause of the error in the compilation.. Any ideas? Link to comment Share on other sites More sharing options...
zcoacoaz Posted February 18, 2005 Share Posted February 18, 2005 make sure you only include .au3 files, or try reinstalling autoit [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
lyledg Posted February 18, 2005 Author Share Posted February 18, 2005 Thanks for the reply, but I doubt re-installing Autoit will make any difference as as I said, when using the "right click" function, the script compiles fine. It seems that when I use the command line options, it fails and this is where the problem is coming in.. Confuzzed! Link to comment Share on other sites More sharing options...
zcoacoaz Posted February 18, 2005 Share Posted February 18, 2005 i have no idea, btw in your code you could make the splash then do a runwait on aut2exe.exe so it doesn't take five seconds when it could take 1 second [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font] Link to comment Share on other sites More sharing options...
MHz Posted February 18, 2005 Share Posted February 18, 2005 $file = 'Aut2exe.exe /in test.au3 /out "test.exe" /nodecompile' If FileExists("Test.au3") Then ;Runwait(@ComSpec & ' /c "' & $file & '" ', @ScriptDir, @SW_MAXIMIZE) Runwait('Aut2exe.exe /in test.au3 /out "test.exe" /nodecompile', @ScriptDir, @SW_MAXIMIZE) SplashTextOn("Compiling..", "Compiling executable...Please wait ", 280, 30, -1, -1, 1, "", 10,600) Sleep(5000) SplashOff() EndifThanks for pointing that out, but that was a small omission when I was pasting the code..It's not the cause of the error in the compilation..Any ideas?<{POST_SNAPBACK}>Works for me. Link to comment Share on other sites More sharing options...
lyledg Posted February 18, 2005 Author Share Posted February 18, 2005 (edited) Thanks for the replies guys... Not sure where to go from here... Update: I think I have found the issue...When I comment out the Splashscreen functions, the compilation seems to work fine... Weird... Edited February 18, 2005 by lyledg Link to comment Share on other sites More sharing options...
jpm Posted February 18, 2005 Share Posted February 18, 2005 Thanks for the replies guys...Not sure where to go from here... Update: I think I have found the issue...When I comment out the Splashscreen functions, the compilation seems to work fine...Weird...<{POST_SNAPBACK}>in Fact your splashscreen will not ne executed before the end of the aut2exe.so Weird * Weird ... Link to comment Share on other sites More sharing options...
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