Jump to content

A variable from outside


Besn
 Share

Recommended Posts

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
Link to comment
Share on other sites

'"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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...