Jump to content
Sign in to follow this  
Besn

A variable from outside

Recommended Posts

Besn

Hello, Id be grateful for any help. I need a way to put a variable into my program from outside.

What I mean is that my program need 2 variables, f.e. "x" and "y" and then run the rest.

I dont want to make 100 different exe's with only 2 different variables but to put them somehow when loading the program.

The perfect solution whould be running it via "run" window simply putting "program.exe 'x=1 y=2'" like GET method in php.

Is there any possibility to do that?

P.S. I cant put them after the program is opened via gui windows or any other way, it has to be while the program is loading.

Thanks for any help and sorry for my english :mellow:

Edited by Besn

Share this post


Link to post
Share on other sites
JohnOne

'"program.exe 'x=1 y=2'" like GET method in php'

For this you want to search "Running Scripts" in help file, and more specifically $CmdLine.

Other ways are many, simplest in my opinion is using .ini files, IniRead() is also in the trusty helpfile.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.