Besn Posted August 8, 2011 Share Posted August 8, 2011 (edited) 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 Edited August 8, 2011 by Besn Link to comment Share on other sites More sharing options...
JohnOne Posted August 8, 2011 Share Posted August 8, 2011 '"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 More sharing options...
Besn Posted August 8, 2011 Author Share Posted August 8, 2011 I guess that solves it, trying now. Thanks. Link to comment Share on other sites More sharing options...
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