Sign in to follow this  
Followers 0
barryatrinium

Passing parameters to AutoIt3 .exe file

5 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0