barryatrinium Posted February 6, 2007 Posted February 6, 2007 How can I have a compiled .au3 file compiled into a .exe and pass a parameter in and then get a value output form the .exe? Thanks, Barry
HardCopy Posted February 6, 2007 Posted February 6, 2007 How can I have a compiled .au3 file compiled into a .exe and pass a parameter in and then get a value output form the .exe? Thanks, Barry Maybe this, check out $CmdLine in help file ;; Compile this script to an exe, then run from command line with any added parameter If $CmdLine[0] = 0 Then Exit EndIf $Parameter1 = $Cmdline[1] MsgBox(0, 'Your Parameter Was',$Parameter1 ) HardCopy Contributions: UDF _DateYearFirstChildren are like Farts, you can just about stand your own.Why am I not a Vegetarian?...Well...my ancestors didn't fight & evolve to the Top of the food chain for me to survive on Salad
barryatrinium Posted February 7, 2007 Author Posted February 7, 2007 Maybe this, check out $CmdLine in help file ;; Compile this script to an exe, then run from command line with any added parameter If $CmdLine[0] = 0 Then Exit EndIf $Parameter1 = $Cmdline[1] MsgBox(0, 'Your Parameter Was',$Parameter1 ) HardCopy Thanks, what about returning a value after the .exe executes?
Moderators SmOke_N Posted February 7, 2007 Moderators Posted February 7, 2007 Thanks, what about returning a value after the .exe executes?Look at the Std* functions, or write them to a location for the launcher to read them. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
barryatrinium Posted February 7, 2007 Author Posted February 7, 2007 Look at the Std* functions, or write them to a location for the launcher to read them.Thanks, I started to look into that and was just getting a bit confused with the Std In/Out.
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