Jump to content

Recommended Posts

Posted

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

Posted

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
Posted

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.

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
×
×
  • Create New...